useContext

Similarly, there is a Hook, useContext(), for reading a Context value inside function components.