forward-ref-uses-ref
Configuration
rslint.config.ts
Require all forwardRef components to include a ref parameter.
Rule Details
Components wrapped with forwardRef receive props as the first parameter and the forwarded ref as the second parameter. This rule reports forwardRef callbacks that only declare the props parameter.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
Options
This rule has no options.