Managing State in React Without Overcomplicating It
useState, useReducer, and lifting state up cover far more cases than people assume before reaching for a state management library. Here's how to think about the choice.
Read ArticleuseState, useReducer, and lifting state up cover far more cases than people assume before reaching for a state management library. Here's how to think about the choice.
Read ArticleAsync functions and await make asynchronous code readable again. Here's how they work under the hood, and the error-handling patterns you'll actually need in production.
Read ArticleGenerics let one function or type work across a bunch of different shapes of data without giving up type safety. Here's the core idea, in plain terms.
Read ArticleWhat the dependency array is really doing, how cleanup functions work, and the one mistake almost everyone makes at least once with this hook.
Read ArticleA short, focused look at in-place array rotation - and why the loop bound is written the way it is instead of the more obvious-looking alternative.
Read ArticleA quick, practical look at the exact HTML this site expects for a code block - useful if you're writing an article by hand instead of using the editor.
Read Article