Rules
Every rule from ESLint, Oxlint and Biome. Pick a rule to see its example. Reach is the weekly npm downloads of the presets that enable a rule; trend is its change over the last quarter.
Every rule from ESLint, Oxlint and Biome. Pick a rule to see its example. Reach is the weekly npm downloads of the presets that enable a rule; trend is its change over the last quarter.
return (
<SomeContext.Provider value={{foo: 'bar'}}>
...
</SomeContext.Provider>
)const foo = useMemo(() => ({foo: 'bar'}), []);
return (
<SomeContext.Provider value={foo}>
...
</SomeContext.Provider>
)Popular · 1 of 1
Disallows JSX context provider values from taking values that will cause needless rerenders
return (
<SomeContext.Provider value={{foo: 'bar'}}>
...
</SomeContext.Provider>
)const foo = useMemo(() => ({foo: 'bar'}), []);
return (
<SomeContext.Provider value={foo}>
...
</SomeContext.Provider>
)