Describe the feature
When working with refs in React it is a standard thing to call them just ref. For example when forwarding ref:
const component = forwardRef((props, ref) => ( ... ))
Another common thing is to use single form of props – a prop. For example when we have to alias a prop name that component accepts:
const { id: idProp } = props
const defaultId = useId()
const id = idProp ?? defaultId
These a two real-life examples. Can we allow ref and prop abbreviations as well? We could simply add it to the this list.
replacements: {
ref: false,
prop: false,
...
}
Additional information
Final checks