These are my reading notes for Code Fellows
…used to memoize (like we do in Dynamic Programming, concept wise) and skip recalculation. It is useful when you don’t want to recalculate heavy calculations each time a component renders. (source)
useReducer is good for when you have multiple values and variables that you’ll want to change.
This convention is very important. Without it, we wouldn’t be able to automatically check for violations of Rules of Hooks because we couldn’t tell if a certain function contains calls to Hooks inside of it. (source)
Custom hooks allow us to have cleaner functional components, remove logic from the UI layer, and prevent code duplication by bringing common use cases to reusable hooks. [(source)] (https://www.wix.engineering/post/custom-react-hook-when-software-design-meets-react-hooks)
useClippy seems pretty sweet. It might be useful to add to a button that automatically copies the context of a textbox on your site, so the user doesn’t have to select everything and hit CTRL C.
useLocalStorage is cool too.
This seems like a pretty big topic, THIS LINK provides a great step-by-step process.
This link also walks through the process.
The first and most important thing to understand about a reducer is that it will always only return one value. The job of a reducer is to reduce. That one value can be a number, a string, an array or an object, but it will always only be one. Reducers are really great for a lot of things, but they’re especially useful for applying a bit of logic to a group of values and ending up with another single result.
(source)