RootRef

RootRef

Helper component to allow attaching a ref to a child element that may not accept refs (functional component). It's higly inspired by https://github.com/facebook/react/issues/11401#issuecomment-340543801

Props

Name Type Default Description
children * element
rootRef * func

Any other properties supplied will be spread to the root element.