React Hooks & Features Used:
- useCallback
- memo
- useRef
Combining these performance enhancements allows us to prevent unnecessary renders in a variety of different scenarios that occur during the lifetime of our form component. useCallback will prevent our input handler from causing re-renders, and memo will work at the input field level to prevent re-renders if it's props haven't changed.
As a bonus, I even include a killer added performance feature by tapping into the useRef Hook. At the end of the video, I'm fully confident you will be able to make serious improvements to any React components that you create in your career.
Links
--------
Repository:
React Hooks API Reference:
Follow Me:
0 Comments