You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/plugins/eslint-plugin-react-x/src/rules/no-context-provider.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,8 +34,8 @@ Replaces usages of `<Context.Provider>` with `<Context>`.
34
34
35
35
In React 19, you can render `<Context>` as a provider instead of `<Context.Provider>`.
36
36
37
-
<Callouttype="warning">
38
-
This rule depends on the [`naming-convention/context-name`](./naming-convention-context-name) rule to identify context components. Make sure to enable that rule to ensure this rule works correctly.
37
+
<Callouttitle="TIP">
38
+
This rule works best in codebases that follow the [`naming-convention/context-name`](./naming-convention-context-name) rule.
0 commit comments