Learn
Read one focused tip and understand why it works.
Focused lessons for the stacks developers use every day. Each category now has its own crawlable page, so users and search engines can land directly on the right topic.
Featured
Local state avoids unnecessary parent renders and keeps component intent obvious.
function FilterPanel() {
const [open, setOpen] = useState(false);
return (
<section>
<button type="button" onClick={() => setOpen((value) => !value)}>
Filters
</button>
{open ? <FilterOptions /> : null}
</section>
);
}Technology switchboard
Pick a stack, then open a focused field note.
React field notes
Component design, state, memoization, and client islands. Each note includes production context, copy-ready examples, and platform-specific advice.
Local state avoids unnecessary parent renders and keeps component intent obvious.
Use memoization for costly derived values, not as decoration around every expression.
Move the smallest interactive piece into a client component and keep the shell server-rendered.
Use children and small slots instead of pushing many props through unrelated layers.
Avoid duplicate state when a value can be calculated from props or existing state.
Use real IDs for list keys so inputs, animations, and focus do not jump between rows.
Every async component should say what is happening before, during, and after failure.
If a value can be calculated during render, do not put it in useEffect and setState.
Store timers, DOM nodes, and previous values in refs when changing them should not rerender.
Split context by responsibility so one tiny update does not rerender the whole app shell.
Use controlled inputs when live validation matters, and native form data when submit-time values are enough.
Assert what users can see and do instead of testing component state names or private helpers.
Read one focused tip and understand why it works.
Use the idea immediately in your stack or workflow.
Measure the result and keep the pattern for later.