Stefan Baumgartner

Web ops, performance and front-end

TypeScript and React Guide: Added a new context chapter

16 December 2018 by @ddprrt | Posted in: 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

Comments? Shoot me a tweet!