What happened to React 19?

Поделиться
HTML-код
  • Опубликовано: 24 ноя 2024

Комментарии • 46

  • @MinhazurSarker
    @MinhazurSarker 27 дней назад +49

    Play it @ 1.5x

  • @عديسبع-ي3ظ
    @عديسبع-ي3ظ 28 дней назад +9

    you the best teacher i ever met , for real no matter how much i say thank you , you deserve more , always explaning in the best way , i wish someday see you holding the best teacher in the world reward

  • @josevsebastian2909
    @josevsebastian2909 27 дней назад +18

    One thing you are missing. Using Suspense for data fetching was an experimental feature from React. The true fault is with TanStack as they pushed an implementation of an experimental feature as production ready. SWR marked it as experimental; TanStack should have too. The React team is taking responsibility for something they didn't do.

    • @collinoly
      @collinoly 27 дней назад +4

      A lot of projects relied in the experimental suspense component. Not just tanstack query. React was released suspense 6 years ago. It also feels like the old way suspense worked that did work in parallel just makes more sense

    • @josevsebastian2909
      @josevsebastian2909 27 дней назад +1

      @@collinoly Suspense is old but intended for lazy loading, initially. Data fetching was recently added as experimental with the use hook. Lazy loading still works fine. For data fetching, use hook is only intended to throw promises (created further up the render tree than the nearest suspense boundary): here is the mistake by TanStack query as it works by throwing promise from where it's created. That's not how data fetching using Suspense was designed to work. Technically, TanStack query violated rules of react that was yet to be written.

    • @jonikyronlahti
      @jonikyronlahti 26 дней назад +1

      But how else TanStack could have worked? Only way to not throw the promise where was created is to do some Apollo level magic, which seems WAY too complicated for simple non-server rendered SPA. Of course you can lift the data fetching up the tree and that is what should be done most of the time. But sometimes... you just don't want to...
      I think the React team REALLY wants us to use some framework to develop React with (to the point it being suspect), but that's just not something many of us need or are willing to do. JS backend ecosystem just isn't very good.
      I think we are seeing a point where Facebook's needs are not matching with the needs of most React apps. I understand that continuing the render after the first promise is thrown is not "optimal", but that just isn't a problem for majority of React apps. What I don't understand is why they couldn't make Suspense somehow configurable so that it can serve both.

    • @josevsebastian2909
      @josevsebastian2909 25 дней назад

      @@jonikyronlahti i don't think they did it just to optimize render. Throwing promises where it's created can create race conditions. Sure, you can memoize it to fix the issue, but it's just treating the symptom.
      Moving it up the tree is not that big of a deal, especially when you consider that how it used to work still doesn't work, you could have had multiple fetches in the same component that were independent but once the first promise is thrown, the execution stops for that component (before and after the change), react team just extended it a bit outwards. And remember, using Suspense for data fetch is a luxury, there's still the good old loading state.
      For how tan stack could have implemented it, I'd say return a promise instead of the data which you can await using the use hook down the tree, not that hard.

  • @saiphaneeshk.h.5482
    @saiphaneeshk.h.5482 28 дней назад +10

    Hello max, on a side note will there be any update on the GO course with more content?
    And any news on Sveltekit?

  • @life_in_gen
    @life_in_gen 18 дней назад +1

    Just wondering why couldnt they make it an option to do parallel or waterfall instead? Or just doesnt work like that.

  • @dennismurimi-m8c
    @dennismurimi-m8c 28 дней назад +3

    Hello Max, Which software do you use to draw your rectangles and arrows to highlight text.

    • @madeOfClay99
      @madeOfClay99 28 дней назад

      I remember Max said once that he uses plain Power Point docs, but don't quote me on that.

  • @AbdelrahmanSaad-w3u
    @AbdelrahmanSaad-w3u 14 дней назад

    Hi Max, I'm subscribed to your React course. I wanted to know if you’ll be adding React 19 to the course soon?

  • @ransomecode
    @ransomecode 27 дней назад +4

    It's been 86yrs 😢
    Still no signals

  • @Biglu193
    @Biglu193 27 дней назад +4

    Welcome back Max ! When can we expect " Laravel 11 The complete guide 2025 " ? 😀 ( please sensei, do it for all of us 🥺)

  • @Gohealt
    @Gohealt 19 дней назад +1

    Who writes a book on React? Ever changing framework !

  • @JamesMuriuki-d8q
    @JamesMuriuki-d8q 27 дней назад

    Hey Max! I’m loving the Code & Curiosity podcast. If you’ve run out of topics again, I’m totally up for a brainstorming session😂. Just as long as I keep getting my regular episodes! Say hi to Manuel for me.

  • @rsajdok
    @rsajdok 22 дня назад

    As always good to watch you 🙂

  • @ekchills6948
    @ekchills6948 26 дней назад

    glad to have you back!

  • @AmirHosseinSaberi-d3h
    @AmirHosseinSaberi-d3h 26 дней назад

    Thanks a lot dear mentor 🙏

  • @chopsueey
    @chopsueey 28 дней назад +1

    and thats why nextjs holds back partial prerendering?

    • @codigoq6084
      @codigoq6084 28 дней назад

      It's base is not Solid(JS) 😅

  • @marcoss4563
    @marcoss4563 28 дней назад

    will online curse be updated too ?

  • @Floubadour
    @Floubadour 16 дней назад

    Thankfully it was (alongside the NextJs in general) the tipping point where I decided to switch to Svelte and SvelteKit. And boy oh boy, that was a bliss! I found joy in coding once again!
    React is dead to me

  • @ts8960
    @ts8960 27 дней назад +1

    I will never use the suspense thing. The code is much easier to understand and more predictable with a ternary "if loading else render"

    • @TheItamarp
      @TheItamarp 27 дней назад +1

      Yeah, Suspense feels too much like magic. Even the docs don't actually explain how it works, just saying that it does...

    • @ts8960
      @ts8960 27 дней назад

      @TheItamarp thanks. I thought i was the only one

  • @davideti2569
    @davideti2569 28 дней назад

    Link to book page is broken.

  • @azaamabubacker
    @azaamabubacker 28 дней назад +1

    Please talk about react native new releases

    • @hahouari_dz
      @hahouari_dz 27 дней назад

      expo 52 will be interesting with the new 0.76 RN

  • @alvitahmid
    @alvitahmid 27 дней назад

    Hi bro
    do you need a thumbnail designer ?

  • @exvimmer
    @exvimmer 28 дней назад +15

    I'm sick of React and Next.js and all other “frameworks”. I made my own website with Go, HTMX and vanilla JS.
    I don't want to learn the same thing over and over again.

    • @dawidziomalify
      @dawidziomalify 28 дней назад +4

      To avoid using big JS frameworks/librariers you used another big JS library

    • @bvedantcodes
      @bvedantcodes 28 дней назад

      ​@@dawidziomalify the difference is that you just sprinkle in some HTMX. It's not like React where you're often reinventing things.

    • @madeOfClay99
      @madeOfClay99 28 дней назад +4

      I understand your frustration, I really do, that is why I don't bother learning other ways of building the same thing, if you go with Go/HTMX/Js that is great. For me, my choice will be always Angular, why? Angular is the only one that deserved to be called a proper FRAMEWORK since it gives you EVERYTHING you need right from the start, everything! Sure, you can install other packages such as redux/ngrx along with material or primeNg, etc... but those are minimal (it depends on the project ofc).
      When it comes to upgrade your Angular apps, is walk in a park, routes, state management, guards, services, signals, components, directives, everything gets updated all in once!
      For me Angular is = stability in my opinion.

    • @reze_dev
      @reze_dev 28 дней назад +1

      Yeah man i feel you. Js frameworks are always changing. I feel overwhelming too.

    • @rand0mtv660
      @rand0mtv660 27 дней назад +1

      Why would you even build a personal website with React/Nextjs? You are frustrated because you were using the wrong tool for the job? If you did it as a learning experience, then fine. React and Next.js aren't for everything, but I would never build a web application without using some framework. Try building a SASS application with Go, HTMX and vanilla JS and report back how it went and how frustrating it has been.

  • @VenkataSaiKiranTanguturi
    @VenkataSaiKiranTanguturi 28 дней назад +1

    Hello max sir, I'm from india, present generation is good at artificial intelligence and machine learning as compared to web development.Is still have future for web development course,what is your opinion.And I'm studying B-Tech final year Computer science and Engineering,can you please give me a suggestion to me to become a artificial engineer and machine learning Engineer (or) a web developer, please give reply to me sir,In future if I get a good job for your guidance I will meet you sir❤❤❤❤❤❤❤❤

  • @midophriya3657
    @midophriya3657 21 день назад

    react v19 can't stable release. and react native never version 1... they being beggar on expo
    this is why switch to svelte and flutter. but I give a chance on react-v19.

  • @mynameisAdas
    @mynameisAdas 28 дней назад

    First

  • @nr7343
    @nr7343 19 дней назад

    I'm fed up with all this rubbish...they invent all kinds of nonsense

  • @nr7343
    @nr7343 19 дней назад

    In fact..who really use react in production?

  • @Dev-graph
    @Dev-graph 28 дней назад

    Any Hacker make a video on React.js Elaetron.js React Native.js With 1 backend and Database