logo
logo
Sign in

9 Things for Beginner About ReactJS

avatar
Tech Mekrz
9 Things for Beginner About ReactJS

Keep your components small: Every good developer knows that small classes/modules/whatever are easier to understand, test, and maintain, and the same is true of React components.

My mistake when starting out with React was under-estimating just how small my components should be.

Write stateless components: Just be very conscious of every time you add state to a component.

Use Redux.js: The API is smaller, simpler, and better-documented.

I’ve found it much quicker and easier to learn all of the concepts, and therefore much easier to understand the flow of actions and information in my own projects.

Always use propTypes: When in development (not production), if any component is not given a required prop, or is given the wrong type for one of its props, then React will log an error to let you know.

collect
0
avatar
Tech Mekrz
guide
Zupyak is the world’s largest content marketing community, with over 400 000 members and 3 million articles. Explore and get your content discovered.
Read more