» npm install eslint-plugin-react-19-upgrade
Videos
Is my React app vulnerable to React2Shell?
Do I need to update if I only use client-side React?
When should I use useEffectEvent vs regular functions?
» npm install eslint-plugin-react
Hey guys, according React 19.2 blog-post we are supposed to use eslint-plugin-react-hooks 6,
But I can already see that 7 is availabe. What did you guys use?
Also, I notice that 7 gave me several new errors, but those errors are not connected to the IDE and are only shown when the 'lint' command is ran. I know we are supposed to use the new hook with Effects now, but I was wondering why no visual warning for the IDE, anyone else?
edit: I found out that i just need to restart my eslint server, and now the errors are properly showing :).
in vscode its CTRL+SHIFT+P and write restart eslint, it will show.
» npm install @eslint-react/eslint-plugin
» npm install eslint-plugin-react-compiler
Hey, guys! I’ve been testing the React Compiler Eslint plugin to see if my codebase could benefit from any changes ahead of React 19 stable. One problem that I’ve run into is that disabling exhaustive-deps inline throws an eslint error because I’m disabling a react eslint rule, implying that the component will be skipped for compiler optimization. However, if I disable the rule globally in my eslintrc, no error is thrown. This might just be a limitation of the linter.
My question is, if I disable this rule globally, will react compiler still refuse to optimize the components that don’t follow the rules of exhaustive-deps? Exhaustive-deps is a rule that I don’t think has historically been the best option, because there are cases when you want to only run a useEffect on mount, and not if the states inside them change. Or, sometimes you only want useEffect to run when some states change, but not when others change.
It could also be the case that I just don’t understand how to write good useEffects after 5 years of using them, so I’m open to feedback about other ways of achieving the goals outlined above in an elegant way.