6 Pro Tips from React Developers

  Рет қаралды 379,255

Vue Mastery

Vue Mastery

Күн бұрын

Пікірлер: 302
@surajvijay1937
@surajvijay1937 3 жыл бұрын
0:21 - "Use functional components" - Cam Jackson 0:58 - "Keep your components small" - Randy Coulman 2:15 - "Understand how to handle 'this'" - Cory House 4:00 - "Use a function in 'setState', not an object" - Sophia Shoemaker 4:38 - "Utilize prop-types" - Adam Jahr (None other than the guy who made this video) 5:11 - "Use React Developer Tools." - Brian Gates
@artemmakatera8663
@artemmakatera8663 6 жыл бұрын
One useful tip.Never use use index of array as a key when you map data to list. It is better to use unique id as a key. Because if you need to add new element as a first element. React will compare it with previous key and react won't see the diiference between items and won't rerendered items with similar keys in similar place. If you need to create new list item before saving to server it' woul'd be better to use uuid or something else to create temporary fake id(for ex. `fake_${uuid()}`).
@yevhenkozlov286
@yevhenkozlov286 5 жыл бұрын
nope. key is only about update-vs-recreate difference(performance thing). so in case mentioned when you insert element into 0 position it will lead all elements are updated. while if using meaningful "key" only element just added will be rendered(and all other will stay untouched). there will be never a case 'won't rerendered'
@nageshwarreddy4530
@nageshwarreddy4530 5 жыл бұрын
You can also use Date.now() as key
@vickylance
@vickylance 5 жыл бұрын
@@nageshwarreddy4530 That doesn't work because Date.now() will be the same for all the items in the list. Computers are fast :)
@vickylance
@vickylance 5 жыл бұрын
@@MikeCOYS If you get id from the response data then it's well and good. But there are places where you don't have the id or you don't even make an API call you just iterate over some generated data.
@f.k.1484
@f.k.1484 5 жыл бұрын
Issues would come with sort anyways so an id or a way to uniquely identify is always an option depending on the exact requirement
@modinaleksey4073
@modinaleksey4073 5 жыл бұрын
Pro tip: don’t try to create large reusable components, in one day you will find yourself trying to understand what happens there. Only small components like buttons, inputs and other parts of interface can be really reusable.
@danielkhoroshko4422
@danielkhoroshko4422 6 жыл бұрын
At what minute do the pro tips start?
@longingheart77
@longingheart77 6 жыл бұрын
Spicy
@jguillendev
@jguillendev 5 жыл бұрын
Jajajaja
@hannad
@hannad 6 жыл бұрын
Use function in setState only when state update requires prev state. Otherwise use object in setState
@nhulongctk10
@nhulongctk10 6 жыл бұрын
not really. setState is a async function. some case we need to use function in setState
@handleOfThy
@handleOfThy 5 жыл бұрын
I see you are a man of culture, rocking that Opeth tee
@sergiogusto
@sergiogusto 5 жыл бұрын
this.setState has a callback function. In this callback, the state is the data is exactly updated. So then you can do all that you need with actual data from the state. example: this.setState({ id }, () => console.log('do something with this.state.id') );
@f.k.1484
@f.k.1484 5 жыл бұрын
Also this is Syntax only. Syntax is like the most basic tools you should be able to handle in order to move to patterns and then write clean reusable code imo
@marcpeace204
@marcpeace204 5 жыл бұрын
Thanks.
@arhabersham
@arhabersham 6 жыл бұрын
This video is BEAUTIFULLY illustrated, + the voice cadence background music separates it from the monotone style of others. The content is so relevant, and illustrations are INCREDIBLY useful and beautiful. Great job!!!
@Amin52J
@Amin52J 6 жыл бұрын
These are some basics you need to learn before jumping into a project, so they're not pro tips. :-|
@RealRurik
@RealRurik 5 жыл бұрын
Don forget to use hooks to keep it even more simple, it didn't mention it because the video is old :).
@AlanDarkworld
@AlanDarkworld 6 жыл бұрын
Nice video. The most important tip that I can provide for react devs: use TypeScript. Always. All the time. It will prevent so many potential errors.
@jmcauhy
@jmcauhy 4 жыл бұрын
I'm starting to learn React now, do you think I should learn it with TypeScript already?
@ychinamale
@ychinamale 4 жыл бұрын
@Vue Mastery what software do you use for the animations on your code snippets? e.g. from 1:37 to 2:11
@bharathprakash410
@bharathprakash410 5 жыл бұрын
React hooks is the best option 😍 for the functional components.
@KazSadeghi
@KazSadeghi 6 жыл бұрын
There's another version of setState where you pass in a callback that should be called when the state has actually been updated. the first argument is the state update, the second is the callback. This allows you to change very little code from the version that only has an update, merely passing in what the function should do afterwards. For more information of this kind of async programming, see Continuation Passing Style.
@nabilhaouam8497
@nabilhaouam8497 2 жыл бұрын
You're right , however it can crash when you have multiple setState's, as you don't know which finishes first. Creating the arrow function before the render is the least problem-causing way .
@marvinandia1214
@marvinandia1214 6 жыл бұрын
Mmm i don’t know if these are “pro” tips
@taylorgriffin6269
@taylorgriffin6269 6 жыл бұрын
yah these definitely seem pretty standard and also opinionated.
@MikeCOYS
@MikeCOYS 5 жыл бұрын
They’re more “common sense” than pro tips. It depends on the situation to use what’s best, but he makes it sound like you should only use the one he points out. One example perhaps he should also list the disadvantages but he doesn’t mention any. Arrow class functions is good but not so much when you’re trying to mock it in a test.
@totalolage
@totalolage 5 жыл бұрын
I've literally been a react dev for 10 days, having never used it before that, and I've figured out all but functional components and functional state set on my own. I was looking to improve, not be told what every tutorial tells you.
@franciscoayala6923
@franciscoayala6923 4 жыл бұрын
do you have another alternatives to "pro" tips? :)
@MisterCuriusController
@MisterCuriusController 5 жыл бұрын
wait why a video about react in this Vue channel?
@farzadsole3784
@farzadsole3784 4 жыл бұрын
Good 1 :P But that's their company name LOL
@geovannyrios6751
@geovannyrios6751 4 жыл бұрын
same question
@MisterCuriusController
@MisterCuriusController 4 жыл бұрын
@@farzadsole3784 oh I see, Im not angry or hate react or vue. Im just curios why.. So Vue and React are the same company?
@borismateev3198
@borismateev3198 4 жыл бұрын
​@@MisterCuriusController Vue and React are both front end frameworks that allow developers to more easily build complex apps. While they accomplish the same objective, the two have different approaches and techniques, so looking at what people are doing in react can give vue developers new ideas/perspectives.
@jorox8948
@jorox8948 5 жыл бұрын
logMessage=()=>{ //blablabla } works without binding 3:15
@lexsoft3969
@lexsoft3969 6 жыл бұрын
Tip 7 : get ready for Hooks, the upcoming feature that will solve existing problems according to React team. It will probably mean that we will say goodbye to classes esp when creating new codes.
@gracewood6768
@gracewood6768 4 жыл бұрын
When i used that. wow , it became clearner! as a begineer reactjs programmer, that made my life easier, but my projects were all into oldies, so i had problems on adapting the classic react thingy
@thefakedeal
@thefakedeal 3 жыл бұрын
I learned react after hooks were introduced, so I never even learned class components
@neihe25
@neihe25 6 жыл бұрын
Does the avatar class at 2:07 really work? Because you insert as prop props.user and then you want to access props.user.name. Wouldn't it result in can not read property of undefined? Because you should use props.name??
@taylorgriffin6269
@taylorgriffin6269 6 жыл бұрын
No. The Comment component is passing the user object to the UserInfo component and the UserInfo component is passing the same user object to the Avatar component so Avatar has access to the user object that has a property 'name'. props does not become the user object. props is an object that has the user object as a property. does that make sense?
@seanflanigan7
@seanflanigan7 5 жыл бұрын
@@taylorgriffin6269 Thanks. I had to write out the avatar code sample to understand it: jsfiddle.net/3tcxjof1/
@IgorBrandao
@IgorBrandao 6 жыл бұрын
Great tips, and to add on tip #5, you can use this.state after this.setState as long as you use its second parameter which is a callback function that gets called when the state is set. this.setState({ someFlag: true }, () => this.state.someFlag ? console.log('isTrue') : console.log('isFalse')) // will print 'isTrue'
@jakub7048
@jakub7048 5 жыл бұрын
that's right :)
@sachinjasrotia2279
@sachinjasrotia2279 6 жыл бұрын
great idea to explain the tricks....quick fast and effective way....thanks bro....
@pramodjodhani
@pramodjodhani 5 жыл бұрын
Which software do you use to edit the videos?
@ShanjaiRaj
@ShanjaiRaj 4 жыл бұрын
With headphones, this video looks perfect
@KajiTetsushi
@KajiTetsushi 7 жыл бұрын
Nice! I use all of these tips on a daily basis, *except* #4 (3:58). I didn't know functions in _this.setState_ was a thing. The no-guarantee of instant state change is because _setState_ is asynchronous, right?
@VueMastery
@VueMastery 7 жыл бұрын
Yep that's correct!
@hyoukuriyama1071
@hyoukuriyama1071 6 жыл бұрын
now, i know!
@rayane4975
@rayane4975 6 жыл бұрын
I tried callback and functions but its still asynchronous ... :/
@sugarlife1246
@sugarlife1246 6 жыл бұрын
medium.com/@voonminghann/when-to-use-callback-function-of-setstate-in-react-37fff67e5a6c Check this article and you'll get it!
@sayamqazi
@sayamqazi 6 жыл бұрын
finding out about that function in setState was the best thing for me.
@EdgieMan
@EdgieMan 6 жыл бұрын
Hello. Thanks for sharing. I have a question regarding tip No.1 and all others. You recommend to use functional components, but using React classes in the following tips. Could you clarify when it is necessary to use classes if at all, and how to manage data within an app if not through states?
@leonardocosta6038
@leonardocosta6038 6 жыл бұрын
Eduards V He recommends using functional components when the component is stateless. One of the best ways to manage state is by using Redux.
@tommygecko
@tommygecko 6 жыл бұрын
or if it doesn't use life cycle methods
@HanYou2
@HanYou2 6 жыл бұрын
Use functional components when you don's store data on this.state and only use the received props. Usually stateful components are called 'containers', and stateless components are called 'components'. You use the containers for state management. Redux is a big higher order components which does state management.
@platek549
@platek549 3 жыл бұрын
When should you use class based components instead of functional components
@lordcheetos
@lordcheetos 3 жыл бұрын
They're just old, and less updated
@samirmahmudlu
@samirmahmudlu 3 жыл бұрын
Thank you so much. Can u do next video about prevent additional ( not required) rerendering? Please.
@JD-ug9gv
@JD-ug9gv 5 жыл бұрын
well done. short, sweet, informative. bongos were a little distracting
@MrLarryQ
@MrLarryQ 6 жыл бұрын
Great stuff here. May I ask what video editing software you used, your transitions and code transformations/code splitting are very professional.
@VueMastery
@VueMastery 6 жыл бұрын
Thank you :) A combination of Keynote and Screenflow were used to create this video.
@RomanOstolosh
@RomanOstolosh 6 жыл бұрын
Can I use static methods od a class to define prop types instead?
@wise_nut
@wise_nut 6 жыл бұрын
This is all I've wanted to know about since I'm stuck on my project........ ....... thanks Adam!!!!!!!! your voice's so good
@user-hg5qh3ni3f
@user-hg5qh3ni3f 5 жыл бұрын
Awesome tips for a beginner like me. thanks
@vaghelabhavin
@vaghelabhavin 6 жыл бұрын
Tip 4 is literally a PRO Tip. Thank you.
@innovationscode9909
@innovationscode9909 3 жыл бұрын
Just use Typescript insteqr of prop-types. It will help you prevent type errors over all...not just in props...
@mihirvaghela3479
@mihirvaghela3479 4 жыл бұрын
Nice video, more than I expected
@borisangelov44
@borisangelov44 4 жыл бұрын
Very nicely said! Good work. Just one note - React is a library.
@prakashale1627
@prakashale1627 5 жыл бұрын
Great tips for beginners
@dcairol
@dcairol 5 жыл бұрын
Good tips! Tip #5 not needed of you use Typescript
@RagazzoKZ
@RagazzoKZ 6 жыл бұрын
How to pass arguments to function in case 3:30 ???
@DucHong
@DucHong 6 жыл бұрын
at @3:30 case, it's a case when logMessage doesn't require args, in case you do, simply write arrow function in onClick props, something like onClick={() => this.logMessage(arg1, arg2 ....)}
@RagazzoKZ
@RagazzoKZ 6 жыл бұрын
In this case it creates a new function for each rendering, that's no good, But I don't see any idea for workaround that.
@oleksandrkryvosheiev4915
@oleksandrkryvosheiev4915 6 жыл бұрын
@@RagazzoKZ you can write like logMessage = (args) => () => { ··· } And in render method this.logMessage(args)
@kurororushirufuru2850
@kurororushirufuru2850 6 жыл бұрын
*EDIT:* My apologies for the heads up. I think it would be the same as a regular function. For example: logMessage = (message) => { console.log(message); } Then in render method: { this.logMessage(message) } *NOTE:* In Babel, you may need the package *@babel/plugin-proposal-class-properties* to transform arrow functions inside classes.
@frankrodriguez6021
@frankrodriguez6021 6 жыл бұрын
If you want to pass arguments to a function the best way to do it is by using props of the component. You can checkout this gist to see an example: gist.github.com/frankrod/4e3c01fb2f8f20b3ca0474ec512dece7
@mohouyizme
@mohouyizme 6 жыл бұрын
Useful information. Thanks!
@ashishrathi9600
@ashishrathi9600 3 жыл бұрын
Nice content, I liked tip 4. Thanks for sharing
@returnZeroo
@returnZeroo 5 жыл бұрын
How did you made these presentations? Can you give me suggestion please?
@ghayoorulhaq2241
@ghayoorulhaq2241 4 жыл бұрын
He's using keynotes
@dandogamer
@dandogamer 6 жыл бұрын
I've been using react for less than a week and use all these tips :) Ps. Still prefer angular over react
@JBuchmann
@JBuchmann 5 жыл бұрын
5 months later, do you still prefer Angular? Just curious because I'm an Angular guy who recently is getting into React
@manafront
@manafront 4 жыл бұрын
do you have a course? im in lambda and react is really making me nervous
@_JocelioLima
@_JocelioLima 5 жыл бұрын
Hey, do you have some tip about using something like proptypes for react context api?
@sergiogusto
@sergiogusto 5 жыл бұрын
use Redux. Bytheway, to make your code cleaner you can use this import { string, number, func... } from 'prop-types;'
@RobertBrunhage
@RobertBrunhage 6 жыл бұрын
Great video! What program did you use to animate and write out the code?
@VueMastery
@VueMastery 6 жыл бұрын
Thanks! Animations are done in Keynote.
@burakselvi4515
@burakselvi4515 5 жыл бұрын
The Vue channel's most viewed video is about React :)
@jugnush
@jugnush 5 жыл бұрын
what music is playing in BG ?
@VishnuASankaran
@VishnuASankaran 6 жыл бұрын
Using a functional component may not be a good choice if you consider the rendering performance. The component re-renders every single time, its parent re-renders. So, I would recommend using React.PureComponent for smaller components which has primitive prop types.
@neihe25
@neihe25 6 жыл бұрын
In addition to tipp five you don't need to use proptypes another way is to use interfaces for props and even for the state maybe it is something worth to mention.
@NoName-j8j3o
@NoName-j8j3o 5 жыл бұрын
Very helpful video!
@rohitpatil3679
@rohitpatil3679 5 жыл бұрын
Can I get some documentation on this ? It would be really helpful
@MD-xx6ob
@MD-xx6ob 6 жыл бұрын
prop-types is useful but i prefer to use a superset of JS like typescript to declare component props using interface
@lexsoft3969
@lexsoft3969 6 жыл бұрын
Great. Typescript should be the future of client-side scripting. It seems that you have been successful in using typescript in React.
@mattmarkus4868
@mattmarkus4868 5 жыл бұрын
Does VueMastery have React training too then?
@VueMastery
@VueMastery 5 жыл бұрын
We made this video before we chose to focus exclusively on Vue.js :)
@tim_t
@tim_t 6 жыл бұрын
Thanks, Justin.
@HostDotPromo
@HostDotPromo 3 жыл бұрын
Time to learn react more in 2021
@-ejs-
@-ejs- 6 жыл бұрын
Hey thanks for your tips!. I'm kind of new into the react world and i'm having a little bit of trouble with components and functional components. I'm using redux to handle application state but the problem is that every time an action gets called, all child component gets rerendered and it's causing me some performance issues. I solved this by using pure components to avoid unnecesary renders but i don't know if there's a cleanner way to handle it. What do you think, is there a better solution?, because almost every post i read it says that i should stay away from pure components but no idea why. Thanks!
@golfmc7941
@golfmc7941 6 жыл бұрын
Emilio Jeldes I am more of a vue person but it sounds like you may need to key your child components.
@devmrin
@devmrin 6 жыл бұрын
For cases when you need state - however don't need your stateful component to rerender - shouldComponentUpdate is a GODSEND! It alone will improve your apps performance many fold!
@oficialdesigner
@oficialdesigner 7 жыл бұрын
Thanks, it's really helped me now!
@edinpuzic
@edinpuzic 7 жыл бұрын
Tip 3: You can install babel plugin transform class properties (babeljs.io/docs/plugins/transform-class-properties) then you don't need to bind this in ES6 classes. Right?
@VueMastery
@VueMastery 7 жыл бұрын
You can utilize that plugin to define properties inside of class definitions themselves as static class properties. Don't forget to update your .babelrc file with that plugin.
@hichdima
@hichdima 5 жыл бұрын
is functional components advise still relevant in 2019?
@Yetipfote
@Yetipfote 5 жыл бұрын
Yes. But now you can scrap the "if you don't need life cycle methods" part, because via hooks there are possibilities to emulate life cycle methods easily.
@pokegaiyui
@pokegaiyui 6 жыл бұрын
This was super useful!!
@CPlayMasH_Tutoriales
@CPlayMasH_Tutoriales 6 жыл бұрын
I see the point of functional components, but I prefer extending from PureComponent in favor of performance
@davidscarios
@davidscarios 5 жыл бұрын
Very usessful, Thanks
@csanadtemesvari9251
@csanadtemesvari9251 6 жыл бұрын
Now you know how to React.
@rammaheshwari3008
@rammaheshwari3008 6 жыл бұрын
Great Information
@asdfkerub
@asdfkerub 7 жыл бұрын
tip 4 got me confused. Does this actually change the state key value? Why does is seem like your just changing the key value to its previous value? Also, what is the use of props parameter if it not being used? Sorry im a bit confused here and this seems like a useful thing to know.
@asdfkerub
@asdfkerub 7 жыл бұрын
Also, will tip 4 work if you are completely changing the key value?
@hrafars91
@hrafars91 6 жыл бұрын
You can do like so: return {...previousState, toUpdate: props.whatYouWant} Then you ensure you only change what you want and let the remainder of the state be whatever it might become.
@CoryTheSimmons
@CoryTheSimmons 6 жыл бұрын
Here's a really simple demo with some comments. codesandbox.io/s/32kznjxkx6 If you do React dev for a while you'll 100% run into wanting to adjust state AFTER some other state has been modified, and the setState(prevState => (...)) thing is a really convenient way to do it. Regarding the signature, setState can accept a POJO, or a function that returns a POJO.
@MrJasonFrank
@MrJasonFrank 6 жыл бұрын
Thanks for that demo Cory!
@HanYou2
@HanYou2 6 жыл бұрын
​@@CoryTheSimmons For this specific case, updating state after another state update, it's good to know that setState also has a callback function, to be sure the previous state changes are already applied: // this.state.toChange === 1 this.setState( (prevState, props) => ({ ...prevState, toChange: prevState.toChange + 1 }), () => { this.setState((prevState, props) => ({ ...prevState, toChange: prevState.toChange + 1 })) }, ) // this.state.toChange === 3 -> but if you do this too much, you run into callback hell
@vishal_taywade
@vishal_taywade 5 жыл бұрын
You shared very useful tips.. 👍 We'd like to see more such of.. Thanks
@jaimenoelalvarezluna3500
@jaimenoelalvarezluna3500 6 жыл бұрын
if only I had seen this video when I started with react everything could have been different. I've worked with React for a year and 5 months, I learned this tips and some "good practices" by try and error. Now with getDerivedStateFromProps it became a little bit tricky because nobody had establish a good practice.
@YashGupta-dr5re
@YashGupta-dr5re 5 жыл бұрын
With react hooks (like useState) the .this boilerplate is going to be a thing of history.
@elevatestudio8710
@elevatestudio8710 4 жыл бұрын
very educating
@eduardonakanishi
@eduardonakanishi 6 жыл бұрын
Nice vídeo, but most of the pro tips van be found on the “FUNDAMENTALS” section of the react docs
@rikenshah1861
@rikenshah1861 4 жыл бұрын
😂😂
@fullstack_journey
@fullstack_journey 4 жыл бұрын
And that's the power of react docs hahah
@monsieurm2904
@monsieurm2904 4 жыл бұрын
Hello, thank you for your tips !
@TheYari1210
@TheYari1210 5 жыл бұрын
Wow! Amazing tips... Great vid thanks!
@nlgachu7536
@nlgachu7536 4 жыл бұрын
Use promises instead of callbacks. Use async/await keywords. I believe all custom functions/methods should be async by default to avoid potential unnecessary refactor in future. Dont know about possible performance issues. Use Immer library to update complex state by simply overriding object property.
@4rled
@4rled 6 жыл бұрын
Proptypes or flow?
@erickgeneric
@erickgeneric 3 жыл бұрын
I’m confused. I thought you could use state (useState) in a functional component. What am I missing
@Eelmascapito
@Eelmascapito 3 жыл бұрын
Thats a hook
@137dylan
@137dylan 3 жыл бұрын
Video was made in 2017. useState (hooks) were released in 2018.
@JAdamMoore
@JAdamMoore 6 жыл бұрын
This was a very well done video. You should be proud.
@jakestewart7079
@jakestewart7079 6 жыл бұрын
Could tip 5 be avoided by using TypeScript?
@paragjyotinath
@paragjyotinath 6 жыл бұрын
Yes, You are right.
@codewithming
@codewithming 6 жыл бұрын
of course you can
@jaimesanchez118
@jaimesanchez118 6 жыл бұрын
Yes. And with TypeScript you type props, states and more. Actually, I am using them together and it feels really good.
@taylorgriffin6269
@taylorgriffin6269 6 жыл бұрын
Yes, but TypeScript does have a learning curve that isn't really necessary if you aren't working on enterprise applications. Like, I am not going to learn TypeScript just so I can strict type hobby projects. But if my company wanted to convert the entire codebase over to TypeScript I would see the value in it.
@KunglawAdy
@KunglawAdy 4 жыл бұрын
3.02 really you dont need bind that function ?? woooww i need to try it
@andrazkos8309
@andrazkos8309 6 жыл бұрын
Stop using setState for anything but internal micro-state of the GUI (for example: input has value state, when onChange triggers, you should copy this internal value state to the proper place into the real store). This way you keep the performance. For everything else, use mobx-state-tree (MobX upgraded into a structure to make it as robust as redux without the useless boilerplate and copy pasting of redux). Then you just trigger (onChane) an action directly on the store with value as the parameter -> gets written to the store, then automatically updated in the GUI (by simply wrapping the functional component into a mobx-react observer).
@rallokkcaz
@rallokkcaz 5 жыл бұрын
Andraž Kos I was leaning towards mobx for React dev but this sounds interesting.
@ThiagoTAV
@ThiagoTAV 7 жыл бұрын
Very good tips, thank you.
@废柴大叔
@废柴大叔 5 жыл бұрын
Thank you!
@MosesMatsepane
@MosesMatsepane 6 жыл бұрын
Great stuff bro! Thanks!
@MrRuzzgar
@MrRuzzgar 5 жыл бұрын
Thank you man
@fideltorres399
@fideltorres399 4 жыл бұрын
Props-types, what about Typescript instead?
@jerryjeremy4038
@jerryjeremy4038 6 жыл бұрын
I just subscribed! I am very new to reactjs and i want to start at the correct way. Thanks
@naveed-h
@naveed-h 5 жыл бұрын
Who cares about the video when the music so damn good. I'm dancing sice like forever!
@moloodayat6039
@moloodayat6039 4 жыл бұрын
Greate tips 👍👍👍
@ahsanusman3993
@ahsanusman3993 6 жыл бұрын
awesome work!
@eugenhildt910
@eugenhildt910 6 жыл бұрын
If you have a template (functional component) then just pass through the props. Let the template decide what you need out of props. Also use Redux. With Redux you won't ever need to deal with setState.. well mostly. React + React-Redux + Redux-Act = Your best Friend.
@rallokkcaz
@rallokkcaz 5 жыл бұрын
Eugen Hildt redux is hell.
@thisaintmyrealname1
@thisaintmyrealname1 6 жыл бұрын
Great video man!
@tronguctran1433
@tronguctran1433 5 жыл бұрын
thank for video , It is very useful
@VinayKumar-ur4ev
@VinayKumar-ur4ev 4 жыл бұрын
First things first, react is a library not a framework
@BuddikaChaturanga
@BuddikaChaturanga 5 жыл бұрын
Use object destruct pattern Use default valuse library
@IntelsCreed
@IntelsCreed 4 жыл бұрын
Nice ! Important tips...but I don't know if they are pro tips !
@Storkz0re
@Storkz0re 6 жыл бұрын
This reminds me official documentation clearly
@hyoukuriyama1071
@hyoukuriyama1071 6 жыл бұрын
thanks brother for the tips! good video!
@irasanchez1265
@irasanchez1265 5 жыл бұрын
Knowing when to break things apart and not get too carried away is tough for me.
@Teardrop-u4z
@Teardrop-u4z 6 жыл бұрын
Thank you cap!
@Spoolie
@Spoolie 5 жыл бұрын
1:56 that in my opinion is part of what's wrong with react "developers". That is poor code. You've now coupled your 2 "reusable" components to the data structure and it is no longer very reusable at all. Just because you can write code doesn't make you a developer. Think about the long term effect of things you do and you'll avoid poor code like that.
@gab_shirohige
@gab_shirohige 5 жыл бұрын
I know it's a bit late but.. WTF are you talking about? The 2 components that he separated is still reusable. You had a monologue of how "bad" are the other developers yet you didn't explain shit. People like you are toxic to work with.
@cakradanusedayu910
@cakradanusedayu910 5 жыл бұрын
Thank you for sharing..
What you're doing wrong with Vue.js 🙅‍♂️
9:37
Vue Mastery
Рет қаралды 6 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 45 МЛН
Миллионер | 3 - серия
36:09
Million Show
Рет қаралды 2,2 МЛН
Stop Doing this as a React Developer
12:27
CoderOne
Рет қаралды 164 М.
Every React Concept Explained in 12 Minutes
11:53
Code Bootcamp
Рет қаралды 825 М.
How I became a React developer (not what you expect)
11:23
Cosden Solutions
Рет қаралды 7 М.
6 State Mistakes Every Junior React Developer Makes
15:53
Lama Dev
Рет қаралды 269 М.
How to Vim in 2023: Tips and Tricks
15:53
ThePrimeagen
Рет қаралды 438 М.
Goodbye, useEffect - David Khourshid
29:59
BeJS
Рет қаралды 503 М.
STOP Using Classes In JavaScript | Prime Reacts
14:02
ThePrimeTime
Рет қаралды 251 М.
Redux Tutorial - Learn React/Redux in one video
31:54
Firecode
Рет қаралды 231 М.
This is the Only Right Way to Write React clean-code - SOLID
18:23
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 45 МЛН