Rules of thumb
- Code Splitting and lazy loading
useMemo
anduseCallback
React.memo
- Windowing technique for rendering large lists
- Speed up your app with web workers
- How to optimize your context value
- Jotai and Recoil
- Managing React Application State Management - Talk by Kent C. Dodds
- Minimize the number of props passed to a component and the number of states in that component
- Derive states from other states instead of storing them
- As much as possible pass props with primitive types such as
strings
,booleans
,numbers
, avoid passing objects