8 Tips For Getting Better At React

preview_player
Показать описание
Learn 8 things that will make you a better React Dev.
Sign up for Level Up Pro for full access

The best shared web hosting

Subscribe to the Level Up Newsletter

React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes.
Declarative views make your code more predictable and easier to debug.

Build encapsulated components that manage their own state, then compose them to make complex UIs.
Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep state out of the DOM.

We don't make assumptions about the rest of your technology stack, so you can develop new features in React without rewriting existing code.
React can also render on the server using Node and power mobile apps using React Native.
Рекомендации по теме
Комментарии
Автор

The 8 tips in order.

1. Setup Linting @ 1:00
2. Set propTypes & defaultProps @ 4:15
3. Know when make a new component @ 6:00
4. component vs pureComponent vs Functional Stateless Component @ 8:14
5. React DevTools @ 11:27
6. Inline Conditionals @ 12:30
7. Use Snippets @ 15:00
8. Learn how React works @ 16:25

syntaxfm
Автор

Great video - this was perfect for someone like me who is bored with the beginner tutorials but who isn’t quite knowledgable enough to be considered an expert.

ubibecauseofai
Автор

9. Use Typescript and replace propTypes with interfaces :)

DEVDerr
Автор

I am very very glad you create your themes based on Wes Bos theme. Yours and Wes Bos's are the only themes that don't make my eyes hurt. Great video.

luisrodriguezcastro
Автор

We want more! :)

What I am missing is a tool that would show me a tree of components of my application in graphical form. You know, I have 50-60 components and I start to forget which components was related to which. So a tool that would generate me a road plan of my work.

cismuz
Автор

Good stuff Scott! I'd also recommend prettier. I just switched to it and it is LIFE CHANGING. Set it up to format on save and you'll never want to code JavaScript without it again.

DaveCool
Автор

14:20 line 56 the right syntac is condition ? exp : exp2

hamzahajji
Автор

Thank you for the great pointers. Man, your audio setup is amazing!

SowedCastelli
Автор

In setting propTypes, how do you handle props from Redux? These are props from mapStateToProps & mapDispatchToProps? Do you add them to propTypes everytime?

AlistairCerio
Автор

Thanks for the informative video, what's the theme of vs code you're using?

Skywalkerful
Автор

eventually, there will be some files with long lines of code? Or not? extracting component logic for reusability is really tricky

yashone
Автор

Regarding the use of inline conditional statement to render a component (minute 12:35), isn't this going to insert and remove the component from the DOM in real time? Isn't it better to hide and show using CSS's style={display: 'none'} from a performance point of you? I'm not disputing the merit of inline conditionals - just that in this specific use case it does not seem optimal.

etayluz
Автор

What plugin did you use to show the compressed file size?

thatguynar
Автор

its crazy to think how far react has changed since 2017.

NoelTorres_noletorious
Автор

Nice video, gave me very good tips. Thanks a lot.

JasonSchoeman
Автор

Wow these are some really great tips! What color theme is that?

snugglepuff
Автор

What is putting the sizes of the imports in your file?

Zombieskelper
Автор

Hi Scott.
Thanks for the great video !:)

alekseikorkh
Автор

I use native javascript default param values instead of default prop types. Anyone else following this approach? It saves me the headache of declaring another object and obviously lines of code 🤓

manuelpascual
Автор

what font are you using to have the arrow function connect like that?

derocknc