Reactjs – React props to global state mapping
I am creating a reusable component for one of my application. This component internally has complex state management involved with lots of prop drilling. Hence i have used a React pattern with the combination of useReducer and useContext and created…