September 2018
Intermediate to advanced
302 pages
7h 17m
English
To learn about the React Context API, we will use a simple language selector. I have created a component that allows us to select one of two languages, either English or Polish. It stores the selected language in the Redux store:

Our goal is now to expose language through the React context API. To do so, we need to use the createContext function that was imported from React. This function will return an object containing the Provider and Consumer components:
// src/ Chapter_10/ Example_3/ ...Read now
Unlock full access