Rules
no-create-ref
Full Name in eslint-plugin-react-x
Full Name in @eslint-react/eslint-plugin
Features
🔍
Presets
corerecommendedrecommended-typescriptrecommended-type-checked
What it does
Prevents usage of createRef() in function components.
createRef() is a legacy API that is not recommended for use in new code. Instead, prefer using useRef() with function components.