useContext

Learning context API and the useContext React hook

Learning context API and the useContext React hook

  • September 15, 2020

In this react hooks series, we have already explored the react hooks useState, useEffect, and useReducer. The next react hook we will look into is the useContext hook. As we saw while building our sample application, we had to lift the state up to our root component in order to...