Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • 3
    could you maybe provide some code in codesandbox or some similar service? Commented Aug 24, 2018 at 12:56
  • You can pass ref as a prop. Have you tried it? Commented Aug 24, 2018 at 13:03
  • @devserkan You cannot since the creator is a regular fucntions, React doesnt allow it Commented Aug 24, 2018 at 13:17
  • @LazarNikolic codesandbox.io/s/lyj6x2948m Commented Aug 24, 2018 at 13:17
  • edit your question to include codesandbox Commented Aug 24, 2018 at 13:25