3 ms·
Really wish the author had gone all in on hook patterns rather than start with component patterns and make a transition. 1. Use TypeScript to catch errors earl
by koblas 6y ago
Really wish the author had gone all in on hook patterns rather than start with component patterns and make a transition.
1. Use TypeScript to catch errors early
2. Use hooks
3. Build your data access layer as custom hooks -- e.g. const { isLoggedIn, loggin } = useAuth();
4. Tips on refactoring to have testable components
5. Understand when to use memoization -- expensive is in the eye of the beholder.