← React Intermediate Questions - Set 2 Q17

What is the `useContext` hook in React and how is it used?

React Intermediate Questions - Set 2

Example

const theme = useContext(ThemeContext);

What to notice

← Back to the question list