Skip to content

Commit 58b2a06

Browse files
committed
docs: minor fixes
1 parent da13124 commit 58b2a06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/pages/docs/rules/no-unstable-context-value.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ const MyContext = React.createContext({});
4141
function MyComponentProvider() {
4242
return (
4343
<MyContext.Provider value={{ foo: "bar" }}>
44-
{/* ^^^^^^^^^^^^^ */}
45-
{/* - A/an 'Object literal' passed as the value prop to the context provider should not be constructed. It will change on every render. Consider wrapping it in a useMemo hook */}
44+
{/* ^^^^^^^^^^^^^^ */}
45+
{/* - A/an 'Object literal' passed as the value prop to the context provider should not be constructed. It will change on every render. Consider wrapping it in a useMemo hook */}
4646
<ExampleConsumer />
4747
</MyContext.Provider>
4848
);

0 commit comments

Comments
 (0)