Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on React Best Practices for 2021.
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.
There are no comments on this comment yet.
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.