Dude. You are beautiful. You know what developers want to see. One of the best video on react profiler. to the point no more non-sense .
@IvanLeshchenko-q1w5 жыл бұрын
best video about react profiler for now. nice and simple. thank you!
@samartajshaikh26012 жыл бұрын
This is really one of those which everyone wants to know about but don't know where to start. Thanks for this video. 👍
@jguix3 жыл бұрын
Thank you, that was a really concise and good explanation on how to use the profiler and interpret flame graphs, just what I was looking for.
@ShawnRice-eg3il4 ай бұрын
Great rundown. Thanks!
@TuanNguyen-vk4fu4 жыл бұрын
Thank you, Ben. The best video explanation for profiler in react.
@VerySadBatman4 жыл бұрын
This was awesome! I'd really love to see how you structure your React app to scale. Please do a video on that 🙏.
@bawad4 жыл бұрын
Are you talking about folder structure?
@VerySadBatman4 жыл бұрын
@@bawad Yes. Folder structure; where you decide put things like components, contexts, tests, and how they all come together.
@bawad4 жыл бұрын
kzbin.info/www/bejne/g2XVipmnasuihqM
@blyfo2 жыл бұрын
this is a great question
@md.mashnoorsaifkarim3453 Жыл бұрын
@@blyfo I second that
@tyrrelldavis99193 жыл бұрын
Yo I'm having the same problem with redux atm. Am on Linux, seems like it's a function that keeps running itself forever or something. Makes my entire computer freeze after a little bit of time. Hopefully will be fix by end of today. Ben is one of best js KZbinr, much abundance quality & humor
@markhyoutube2 жыл бұрын
Fantastic performance guide, many thanks!
@kirillzlobin71359 ай бұрын
Profiler is apparantly very useful thing
@beeenthere5 жыл бұрын
Thanks for this! Really helpful.
@pawanmittal61663 жыл бұрын
Awesome Video with superb explanation.
@kidShibuya4 жыл бұрын
Super confusing because that action took 154ms but everything in the profiler says less than 3ms?... The CocktailBrowser says it took just .7ms?...
@cebuch.2 жыл бұрын
very helpful and packed with only needed info
@vinayadiga16746 ай бұрын
Thanks Sir!
@sushmitakumari8252 Жыл бұрын
Outstanding.. this is what I expected 😊
@luanecarolineaquinocavalca1064 Жыл бұрын
thank you! very well explained
@yusf1945 Жыл бұрын
Thanks man. This is really good one
@cubiq15 жыл бұрын
7:54 The Chip component's color prop will not be strictly equal (===) when its parent (IngredientPicker component) re-renders because of the inline function. This could potentially trigger a re-render of _all_ mapped Chip children whenever IngredientPicker re-renders. Same goes for the onClick handler prop. Surely these inline functions should be removed before relying on things like React.memo()?
@bawad5 жыл бұрын
good point
@umnajdi2 жыл бұрын
I didnt get what you mean. can you explain more?
@samuelaraujo9099 Жыл бұрын
@@umnajdi basically, when you define a function like () => yourAnotherFunctionCall() inside a props, you are creating a new ref, so everytime parent component rerender the reference will be different, so child component will rerender
@serenestrolls-d7b Жыл бұрын
@Mayank Ramina Dont create inline functions. Create named functions and use useCallback hooks to memoize them.
@billyfigueroa1617 Жыл бұрын
Great video!!! I’ll be using this for work. Hopefully we are on the right version so the profiler shows up
@Jrrs20072 жыл бұрын
This was great!!!!! More guidance on the tools!!!!!! Please 😁
@nbaua34543 жыл бұрын
Best content on your channel..keep it coming
@TheOrlstefano4 жыл бұрын
Great video. Really helpful. Thanks a lot
@deepwebtube3 жыл бұрын
Great inputs sir!
@aqua1236705 жыл бұрын
awesome, thanks
@HOLONIA4EVER2 жыл бұрын
Very useful, thanks.
@tegaogheneovo58813 жыл бұрын
Oh shoot exactly what I need, been at this for a whole day bro trying everything this is a fairly standard approach..thanks😔 lol ask Ben first
@punisher0133 жыл бұрын
excellent! thanks man
@petrosc7608 Жыл бұрын
great video, thanks a lot
@victorfigueiredo6031 Жыл бұрын
Excelente vídeo, me ajudou demais!
@jivkojelev37444 жыл бұрын
Is there any special setting for render count ? I don't see the count in my profiler.
@DrNoxer4 жыл бұрын
When you pass callbacks or raw objects to the components and you're doing it directly on it: blabla={() => ...} or blabla={{ ... }}, those fail the comparison check of react, since objects and functions get a new address and the JS comparision compares the addresses, making: {a: 10} == {a: 10} be false, therefore, for raw objects you should useMemo() and for raw callbacks, useCallback()
@cristiantorres8532 жыл бұрын
how to use the lazy loading as you mentioned?
@segevitsky3 жыл бұрын
Cool video thanks!
@zoladkow2 жыл бұрын
granted, this vid is about a workflow with profiler, but the most prelevant message i think gets across is to just throw more memo here and there 🤷😁
@ankitmehrotra85194 жыл бұрын
Hey Ben..Great video as usual. A small request for video for optimization of javascript app, react app, code splitting.
@nxshipon64702 жыл бұрын
Josss sir Thanks YOU
@cryptonative4 жыл бұрын
Hi Ben. Thanks for this very informative video. What’s the name of cocktail app you are optimizing in this video?
@rhidlor85773 жыл бұрын
Thanks
@jamesfoo89993 жыл бұрын
Thanks :) The text documentation just wasn't sinking in.
@speculativesapient7139 Жыл бұрын
How do you get the extra information for components about total renders, props etc.? It seems the default setup doesn't provide that information.
@HaibertBuilds3 жыл бұрын
You should make the same video for react native!
@ShumiGupta5 жыл бұрын
Can you provide the chrome extension you used to get react in developer console tab? I used react developer tool extension using which I am not able to get total number of times component renders.
@bawad5 жыл бұрын
Make sure you have the latest version of react
@ShumiGupta5 жыл бұрын
@@bawad thanks for the reply. Yes I have latest version of react and react developer tool but it looks like they have made some changes in recent version now they are not showing the number of times component got rendered. I haven't got chance to check the change log will check and if I found something I will post the reason here. If you got to know something about this please share it with me.
@ShumiGupta4 жыл бұрын
They have made multiple changes to optimize performance. So I would recommend all to review change log as they have mentioned all the changes made.
@shirshak67385 жыл бұрын
nice :) Seems like everybody should use at least to get insight how performant their app is running.
@arvindvs89343 жыл бұрын
Is there a tutorial video for the cocktail app shown in this video? Can someone please guide
@neeraj1bh3 жыл бұрын
Is the Profiler API from docs and Profiler Tab in Dev Tools same.
@gabrielloubier86624 жыл бұрын
This is not useful anymore as there is no "total render" count in react dev tools
@mohammadalioruji40253 жыл бұрын
cooool
@christiangyaban96665 жыл бұрын
nice one
@jamesherrero73344 жыл бұрын
@5:53 you uses a short cut to delete only that one word, how???
@bawad4 жыл бұрын
dt) benawad.com/vim
@vishaljain88684 жыл бұрын
fn+option+delete
@EverAfterBreak23 жыл бұрын
ctrl + delete in windows
@TheNishant30 Жыл бұрын
1:41 that's what she said.
@arvindvs89343 жыл бұрын
Is the app in this video using Material UI?
@w1pe0ut3 жыл бұрын
Yes ,it is. (Material UI for React, of course)
@hiteshagja243 жыл бұрын
Video volume is very low.
@popuguytheparrot5 жыл бұрын
why are you using HOC withStyles if in v4 add useStyles hook
@Deliverant5 жыл бұрын
It's not his application i presume
@bawad5 жыл бұрын
Yep
@popuguytheparrot5 жыл бұрын
@@bawad can you do video about effector.js ?
@bawad5 жыл бұрын
at some point yes
@MikeyHogarth5 жыл бұрын
It's my app (hi Ben - I nearly had kittens when I saw this vid) - easy answer to this is that v4 wasn't out when I started, it came out mid-project - plus I'm not in the habit of just hookifying everything just because there's an API for it, sometimes it's advantageous to use HoC's.