Eliminating the .Provider suffix
Unanswered
Tonkinese posted this in #help-forum
TonkineseOP
Is this available in next yet or do we need to wait until React 19 is realsed?
Before React 19: You had to use <ThemeContext.Provider> and pass a value prop.
React 19: You can use <ThemeContext> directly, simplifying the syntax by eliminating the .Provider suffix.
Before React 19: You had to use <ThemeContext.Provider> and pass a value prop.
React 19: You can use <ThemeContext> directly, simplifying the syntax by eliminating the .Provider suffix.