I wish I knew these before diving into React

Last updated 1 year ago by Canberk Morelli

react

At OpsGenie, we had a deep dive into React for our Badges project. I learned many new things & made many mistakes. Some of my learnings are subjective, but I thought they may help other people to learn React and avoid making the same mistakes. Long story short, these are the things that really helped me. 1. By default, setState triggers a re-render 2. setState updates the local state asynchronously 3. Component Lifecycle is Important! 4. Use componentWillReceiveProps 5. Use React Developer Tools 6. Use Create React App

Read full Article