37

Playing with the Context API in React 16.3 - Carl's Blog

 5 years ago
source link: https://www.carlrippon.com/playing-with-the-context-api-in-react-16-3/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
With React 16.3 recently released I thought it was time to take a look at the new context API. The new context API allows components to get data from a context rather than from props. It prevents having to pass props down through child component to child component ... i.e. "prop drilling"

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK