React's ⚛️ new Context API
Explores React's 'new' Context API, its evolution with hooks, and why it's a stable solution for state management.
KentCDodds.com is the personal website and blog of Kent C. Dodds, a software engineer, educator, and open-source contributor known for his work in the React ecosystem. He writes about modern web development, testing, accessibility, performance, and developer experience, focusing on how to build reliable, maintainable, and scalable applications. Kent is the creator of popular libraries such as Testing Library and Remix, and his articles often highlight practical approaches to writing better React components, handling state, and improving user experience. Beyond tutorials, the site features courses, workshops, podcasts, and conference talks, all aimed at helping developers learn by doing. With his teaching-first philosophy and clear explanations, KentCDodds.com has become one of the most trusted learning resources in the React and JavaScript community.
194 articles from this blog
Explores React's 'new' Context API, its evolution with hooks, and why it's a stable solution for state management.
Explains the state reducer pattern in React for flexible UI library state management, using downshift as an example.
A developer shares how he built two production-ready web apps entirely in the browser using CodeSandbox and deployed them with Netlify.
A guide explaining what JavaScript tests are by building a simple testing framework from scratch for pure functions.
The author argues for the use of 'toolkits' (zero-config tools) in software development, explaining their benefits and providing an analogy.
A developer troubleshoots a tricky JavaScript testing error after updating dependencies like React and Jest, despite mocked console methods.
A guide on testing React components that use render prop components, covering integration and E2E testing strategies.
A preview of an 'Advanced React Component Patterns' course, covering patterns like Compound Components and Higher Order Components.
Tips for giving effective software demos, including starting with 'why', knowing your audience, and pre-recording.
Announcing two new React video courses: a free beginner's guide and an advanced patterns course available via subscription on egghead.io.
A developer shares his family's Christmas traditions, homemade gifts, and the importance of service, inspired by his faith.
The author announces and details their new 'Beginner's Guide to ReactJS' course, focusing on teaching React fundamentals with a simple, no-tooling approach.
A guide on how to become an open source project maintainer by contributing to existing projects you use, without needing permission.
A developer shares techniques for improving module usability, focusing on removing side-effects from imports in a custom i18n solution.
A developer explores a hacky React solution for handling errors in a custom i18n library's 'sorta-curried' API.
A developer critiques snapshot testing, arguing it creates unclear tests that erode team trust and are often blindly regenerated when they fail.
Explains the prop getters pattern in React, using downshift and react-toggled as examples to give users rendering control.
Using babel-plugin-codegen to create a build-time workaround for a UMD bundle issue with glamorous and React 16.
Introducing paypal-scripts, a zero-config tool for PayPal developers inspired by create-react-app to boost productivity.
Introducing downshift, a React library using render props to build flexible and accessible autocomplete/combobox components.