[Bug]: hook-use-state
suggested fix should update all reference
#3810
Labels
hook-use-state
suggested fix should update all reference
#3810
Is there an existing issue for this?
Description Overview
The current fix suggested is to simply replace the variable, This isn't smart enough
It should update all references
2024-08-31.16.48.48.mov
Expected Behavior
This is a custom
react-hook-use-state
rule I wrote. Before this, I didn’t know the existence ofreact/hook-use-state
it's smart enough
2024-08-31.16.49.50.mov
I have implemented almost all the functions of
react/hook-use-state
, but the logic is simplerI checked the source code of hook-use-state, it is very complicated, and I can't modify it
I hope
react/hook-use-state
can also achieve this function by someoneeslint-plugin-react version
v7.35.0
eslint version
v9.9.1
node version
v20
The text was updated successfully, but these errors were encountered: