How to pass ref through props?

The problem of transmission through props
We have a component Input
It is necessary for the simplified page layout
Receives the props including the need somehow to pass ref
How to do it?
Already tried through the state and through the assignment of variable values from the props
index.js:1375 Warning: Input: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop.
March 23rd 20 at 19:40
1 answer
March 23rd 20 at 19:42
You need to use or transfer forwardRef ref under a different name.
A link to the documentation

const Input = forwardRef((props, ref) => <input ref={ref} {...props} />)

const Input = ({ inputRef, ...props }) => <input ref={inputRef} {...props} />

Find more questions by tags ReduxReactJavaScript