React has become a word that developers worldwide hear on a regular basis. Too much flexibility makes it easy to pick up bad habits and poor practices. Here are some of the worst practices I’ve seen (and may or may not have done in the past) The useEffect hook is probably one of the first hooks a React developer learns.
Table of contents
1. Prop Drilling2. Importing more than you need3. Not separating business logic from component logic4. Duplicated work on each render5. Using the useEffect hook improperly6. Incorrect usage of Boolean operators7. Using ternary operators all over the place to conditionally render8. Not defining prop types or not deconstructing props9. Not Using Code Splitting for larger applications11 Comments
Sort: