React's Context lets you pass a value to all the components of a subtree without threading it through every level of props. You create it with createContext, provide it with a Provider and read it with useContext. It suits global data such as the theme or the signed-in user.
Example
const Theme = createContext('light');
const theme = useContext(Theme);