← React Intermediate Questions - Set 6 Q51

What is the `useContext` hook used for?

React Intermediate Questions - Set 6

Example

const cart = useContext(CartContext);

What to notice

← Back to the question list