Answer the question
In order to leave comments, you need to log in
How to pass ref through props?
There was a problem of passing through props
. We have a certain Input component.
It is needed for a simplified layout of the page
. Props are passed to it, including the need to somehow pass ref
How to do this?
Already tried through the state and through assigning a value to a variable from props
Gives an error:
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.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question