2026
- OAuth - What is the purpose of PKCE?How does it work?
- git worktree in my own wordsWhy are worktrees so awesome?
- Implementing the loading spinner in ReactDifferent ways to use React's <Suspense> to provide a pleasant UX as a page loads
- Updating the state reducer pattern to use TypeScriptWe don't need the actionTypes variable anymore.
- Using React context to implicitly share state in compound componentsFun fact: This was previously accomplished with React.cloneElement
- Get the latest props in an async click handler by using the "latest ref" patternClosure in JavaScript makes this a challenge otherwise.
2020
- Control a child component's inner stateThis works if you are using the state reducer pattern.
- Use prop collections to pass on aria attributesPackage up the props which always need to be passed to a component in a hook.
- The React version of HTML's <select> componentThe compound component pattern has a root component implicitly sharing state with a set of possible children.
- Export helpers from a "context module"Rather than passing helpers down in the context value, exporting them separately could have readability and performance advantages.
- Conditionally rendering JSXSome conditional rendering tools to add to your toolbox.
- Why you can't add a third party script in the render functionTurns out scripts added with innerHTML are inert.
- Use a prop, not another piece of stateThe argument passed to useState is only used once.