Common reactjs mistakes to avoid:
π thread..
π thread..
1. Not creating enough components
A common mistake that React developers make is that they donβt create enough components. It is much better to create smaller components with each of them performing a single function. Helps a lot in saving time during debugging.
A common mistake that React developers make is that they donβt create enough components. It is much better to create smaller components with each of them performing a single function. Helps a lot in saving time during debugging.
3. Not writing unit tests
A unit test enables you to test parts of your application freely to ensure a specific functionality works as expected. Writing a unit test saves you the time youβd spend finding that bug by pointing it out immediately. They help in debugging rapidly.
A unit test enables you to test parts of your application freely to ensure a specific functionality works as expected. Writing a unit test saves you the time youβd spend finding that bug by pointing it out immediately. They help in debugging rapidly.
5. Using Redux or Flux to manage all your application states
It is not recommended to use redux in every state in your application.
Redux could be hard to understand at the beginning but it will make your components share states easily. So it will make your development easy.
It is not recommended to use redux in every state in your application.
Redux could be hard to understand at the beginning but it will make your components share states easily. So it will make your development easy.
That's a wrap!
If you enjoyed this thread:
1. Follow me @codedamncom for more of these
2. RT the tweet below to share this thread with your audience
If you enjoyed this thread:
1. Follow me @codedamncom for more of these
2. RT the tweet below to share this thread with your audience
Loading suggestions...