This New React Feature Will Make Your App 20% Faster

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

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

  • @saqibkhanz8417
    @saqibkhanz8417 7 месяцев назад +35

    Could you please create videos based on large-scale projects?

  • @snake1625b
    @snake1625b 7 месяцев назад +7

    if it memoizes everything by default then does it use extra memory as well?

  • @saru-mado
    @saru-mado 7 месяцев назад +3

    Great to see u again! Kyle

  • @bobwilkinsonguitar6142
    @bobwilkinsonguitar6142 7 месяцев назад +2

    Already updated my projects. Pretty smooth transition, but the eslint isn't working in Vite, so I've got 8/9 and 32/34 components memoized, but can tell which ones are problematic. Using MUI, my component tree is a mess😭

  • @Elefantoche
    @Elefantoche 7 месяцев назад

    Thabks for sharing this info. It's always good to know React keeps evolving.

  • @rp77797
    @rp77797 7 месяцев назад +1

    Great video! How do you find out which components can't be compiled. The health check only tells the number of components compiled. Is there a way to see more details on which components didn't compile and the reason?

  • @ericepp1496
    @ericepp1496 7 месяцев назад +67

    I love this guy but I can’t unsee him shaking his head while talking. It‘s robbing me of my focus 😂

    • @rooibaard832
      @rooibaard832 7 месяцев назад +19

      Why did you have to say that? now I keep seeing it as well

    • @kkebo
      @kkebo 7 месяцев назад +9

      Shit can't unsee that now 😂

    • @witchmorrow
      @witchmorrow 6 месяцев назад +1

      oh damn you're so right it's constant, I never noticed before

    • @adamleblanc5294
      @adamleblanc5294 6 месяцев назад +1

      It's so distracting... I have to cover his face...

  • @arek9430
    @arek9430 7 месяцев назад +2

    So basically it implements `React.memo`, `useMemo` and `useCallback` be default to any mutable elements making it not rerender brainlessly - shouldn't it be default React behaviour?

    • @s7yr0
      @s7yr0 7 месяцев назад +3

      We should have this in like 2014

  • @SeanCassiere
    @SeanCassiere 7 месяцев назад

    PSA: For anyone looking to get the eslint warning and errors, make sure you are using v8 without the flat-config. The react eslint plugins are not compatible with the flat config and v9.

  • @Simon-temporary
    @Simon-temporary 3 месяца назад +1

    Is it safe/good to use React 19 for production. Which one is better to learn now as a beginner React 19 or React 18?

    • @u_long_u64_i64
      @u_long_u64_i64 3 месяца назад

      Production: react 18
      Beginner: React 19 is a bit better for you
      Remember that React 19 Suspense is slower than React 18, but shouldn't affect performance is your app, as you won't use it

  • @mohamadrezakazemian5220
    @mohamadrezakazemian5220 7 месяцев назад

    great video! thanks for sharing

  • @amitjoshi956
    @amitjoshi956 7 месяцев назад

    Hey Kyle! I have been trying to solve this problem from long and hence seeking your help How do hide/remove the title and more videos sections from the RUclips embedded player in my app? tried the 's contentDocument and querying for its children but that didn't help.

  • @luiz.henrique9
    @luiz.henrique9 7 месяцев назад

    If I am using the Context API, will this memo only trigger a re-render in the components that use the specific property that was updated?

    • @arek9430
      @arek9430 7 месяцев назад +2

      I was once doing some serious debuing in my react-native app that used ContextApi and here is what I observed:
      -EACH component that uses 'useContext(myContext)` and even uses property that didn't change in the context will always rerender when any property of useContext changes
      -without using `useCallback` and `useMemo` on properties and functions served by the context, WHOLE context rerenders (and then all subsequent components that uses this context) on each local component state change (not from context).
      -so using `useCallback` and `useMemo` on arrays objects and funtions inside ContextApi dramatically lowers number of unnecessary rerenders but still on any property change inside context, all components using this context will rerender - redux fixes this issue. So ContextApi with memoizations is quite good, but definitely not ideal - or I am wrong.

  • @premsagar4438
    @premsagar4438 7 месяцев назад

    What kind of keyboard you use Kyle?

  • @BeCurieUs
    @BeCurieUs 7 месяцев назад +1

    We still can't even upgrade to 18 cause we have to upgrade all our unit tests from enzyme to RTL....that face when 100% unit test coverage causes migration issues

    • @Elefantoche
      @Elefantoche 7 месяцев назад +1

      That moment when you realize unit testing helps you catching bugs earlier, but takes extra time to maintain and introduce a new way of coupling.

  • @gothicwave7761
    @gothicwave7761 7 месяцев назад +1

    bro really had to spend 1/3 of the video editing the config files just to write hello world 💀💀💀 react sure looks tempting I wanna learn this aha 😭

  • @DevChannel-b4i
    @DevChannel-b4i 7 месяцев назад

    Hi, thanks for your awesome videos, is there a way to reach out to you for questions?

  • @AjayGopalShresthaAGS
    @AjayGopalShresthaAGS 7 месяцев назад +4

    I loved the class-based components. they complicated the frontend development with the introduction of functional components with hooks.
    The thing use memo does to a react app. should have happened by default.

    • @programmerjowo
      @programmerjowo 7 месяцев назад

      Yeah class based component is more clean and just like desktop gui programming. And hook is crap

    • @youarethecssformyhtml
      @youarethecssformyhtml 7 месяцев назад +2

      Wow. I thought I was mad when I thought they were cleaner.
      Glad I'm not the only one on the boat.
      I've always hated how dirty the code looks on function components. It's a mess. I'm having hard time trying to read this mess.
      On the other hand, classes were so cleaner and easier to read.

    • @programmerjowo
      @programmerjowo 7 месяцев назад

      @@youarethecssformyhtml yeah hooks especially useEffect is the source of bugs

  • @quanta-o3u
    @quanta-o3u 7 месяцев назад

    Did anyone try React compiler for Existing Projects?plz share exact steps for migration

  • @huycaoviet8367
    @huycaoviet8367 7 месяцев назад +1

    Useful 🎉

  • @kevinespina3289
    @kevinespina3289 7 месяцев назад

    More titled Tuesday please!
    So you stream somewhere? On twitch maybe?

  • @GelzintVidaurre
    @GelzintVidaurre 7 месяцев назад

    ❤️❤️🥺 awesome

  • @first275
    @first275 7 месяцев назад +2

    I love React and I'm really exited for these new features to become stable

    • @SteveosCPU
      @SteveosCPU 7 месяцев назад

      what do you love about React? I don't use it.

    • @first275
      @first275 7 месяцев назад

      @@SteveosCPU try others frameworks, you'll realize React has the lowest learning curve

    • @first275
      @first275 7 месяцев назад

      @@SteveosCPU try others frameworks, you'll realize React has the lowest learning curve

    • @Elefantoche
      @Elefantoche 7 месяцев назад +1

      ​@@SteveosCPUmost of the time you don't have a choice due to IT guidelines, 1st or 3rd party dependencies, or simply. getting to work in ongoing projects made in React, so no.

  • @avijitchanda7944
    @avijitchanda7944 7 месяцев назад

    How use effect not cause any issues, if you guys see there is no dependency array so it will under do infinite loop right?

  • @MinorMood
    @MinorMood 5 месяцев назад

    Thank for the video, high quality content, as usual. But these features I see as huge overhead and completely pointless. JSX and all the React concept is an abstraction big enough. And this only builds more abstraction - taking away the real understanding of how things work under the hood - without providing any real benefits to the developer, as I see it here,

  • @kashmirtechtv2948
    @kashmirtechtv2948 3 месяца назад

    You can hide your camera or zoom out yourself

  • @slliks4
    @slliks4 6 месяцев назад

    I am not ready for react 19 😅

  • @rajfekar1514
    @rajfekar1514 7 месяцев назад

    please teach new nextjs 15 features and websocket connection with example

  • @sadabdhrubo
    @sadabdhrubo 7 месяцев назад

    we would love to have a crush course on nest js from you. ❤❤

  • @romek4794
    @romek4794 7 месяцев назад +47

    You won't imagine how fast your app will be when you stop using react at all! Start learning vanilla JS again!

    • @kaustubhpaturi4801
      @kaustubhpaturi4801 7 месяцев назад +4

      Yea... Sometimes I do feel that... 😂

    • @samking618
      @samking618 7 месяцев назад +11

      and reinvent the wheel!

    • @programmerjowo
      @programmerjowo 7 месяцев назад +4

      jQuery write less do more

    • @kkebo
      @kkebo 7 месяцев назад +25

      This comment is so stupid, no sane person would choose vanilla js to build a large scale app.
      Atleast use Lit

    • @Elefantoche
      @Elefantoche 7 месяцев назад

      Fun fact: Stream browser webapp uses jQuery. Like a lot.

  • @hathspider9763
    @hathspider9763 7 месяцев назад

    This iust seems like too much work to upgrade. Im keeping with 18.

  • @gigsnicky
    @gigsnicky 7 месяцев назад

    Shake it, but shake less

  • @habiks
    @habiks 7 месяцев назад +5

    just scrap react for something that is fast out of box

  • @deimne970
    @deimne970 7 месяцев назад +6

    React trying to be Svelte 🤣

    • @davidmartensson273
      @davidmartensson273 7 месяцев назад

      No, its react implementing common functional features that has been around for decades.

  • @Euquila
    @Euquila 7 месяцев назад +1

    { name }: { name: string }
    This is the part of Typescript I don't like. In the context of dynamic language we should take some liberties, especially in frontend code where the depth is complexity is usually not that great.

  • @jasonjasonjasonjasonjason
    @jasonjasonjasonjasonjason 7 месяцев назад

    bruh moment

  • @youarethecssformyhtml
    @youarethecssformyhtml 7 месяцев назад

    Too bad the compiler is still in beta

  • @SithLordBishop
    @SithLordBishop 7 месяцев назад +16

    stop using react :P Hopefully this helps I quit react after using react hooks for a while. they are so convoluted, cumbersome, and messy

    • @ThotsAndPrayers
      @ThotsAndPrayers 7 месяцев назад

      U were prob using them wrong

    • @ilovekungfu1533
      @ilovekungfu1533 7 месяцев назад +32

      Skill issue lol

    • @ba8e
      @ba8e 7 месяцев назад +3

      React is PURE GARBAGE. Long live Svelte.

    • @RevolutionaryUsername
      @RevolutionaryUsername 7 месяцев назад +9

      @@ba8e ok cultist

    • @ba8e
      @ba8e 7 месяцев назад +5

      @@RevolutionaryUsername I'd say React people are cultists because they can't leave that piece of shit framework.

  • @codewithjacksun
    @codewithjacksun 7 месяцев назад

    Third to view
    This is great. Thanks🤭

  • @ukaszjonasiak382
    @ukaszjonasiak382 7 месяцев назад

    I swear React is the laziest, most brainless implemented framework ever.

  • @thepetesmith
    @thepetesmith 7 месяцев назад

    Can we make a federal ban on just adding “honestly” for no reason please.

  • @uttamsharma3242
    @uttamsharma3242 7 месяцев назад

    13th comment...

  • @basilsatti2828
    @basilsatti2828 7 месяцев назад

    first after firsts lol

  • @swojnowski453
    @swojnowski453 7 месяцев назад

    Do not tell people what to do, you do not know what their circumstances and goals are!

    • @dirknash4113
      @dirknash4113 7 месяцев назад +9

      dont come to see his videos then

    • @ThotsAndPrayers
      @ThotsAndPrayers 7 месяцев назад

      He didn’t tell anyone what to do, he’s just showcasing a new feature. Tf are u on about?

    • @Elefantoche
      @Elefantoche 7 месяцев назад

      I introduce you to a new concept: ignore them.

    • @blossomcherrypink
      @blossomcherrypink 7 месяцев назад

      But you are telling him what to do

  • @CriminalClinton
    @CriminalClinton 7 месяцев назад

    Or you can stop coding in React and use an Adult framework 😂

  • @arunkaiser
    @arunkaiser 7 месяцев назад +1

    First comment

  • @suball
    @suball 7 месяцев назад

    Thats no working on socket io connection

  • @MetroExodus999
    @MetroExodus999 7 месяцев назад

    Also hooks(use, useoptimistics,use actions......) please