This rule is imported and adapted from https://github.com/jsx-eslint/eslint-plugin-react.
In React 19, you can render <Context> as a provider instead of <Context.Provider>. This rule flags <Context.Provider> usage for migration.
const App = () => <ThemeContext.Provider value={value} />const App = () => <ThemeContext value={value} />This rule uses settings['react-x'].version to decide whether React 19 behavior applies.
Do not enable this rule if your project targets React versions earlier than 19.