DEV Community

Paul C. Ishaili
Paul C. Ishaili

Posted on • Updated on

React Hooks - UseContext

The major aim of React UseContext Hook is for developers to be able to compartmentalize various declared UseState Hooks across various files' component in a React Project.

For a useContext Hook to be used, a createContext should have already been initiated in the overall parent component of the React project.

Top comments (1)

Collapse
 
lalami profile image
Salah Eddine Lalami

@ IDURAR , we use react context api for all UI parts , and we keep our data layer inside redux .

Here Article about : 🚀 Mastering Advanced Complex React useContext with useReducer ⭐ (Redux like Style) ⭐ : dev.to/idurar/mastering-advanced-c...


Mastering Advanced Complex React useContext with useReducer (Redux like Style)