HomeArticles

TypeScript and React Guide: Added a new context chapter

TypeScript

React’s context API has be slumbering inside for a while. With one of the latest releases, they decide to open this API to everybody. It’s very nice to use if you like render props. If not, there’s always the new hooks API that makes it even easier.

TypeScript works amazingly well with context. You don’t need to provide any type definitions at all. Only in some edge cases.

Check it out

Related Articles