This PR makes the ref created to the child component as an option. This will enable you to wrap by default stateless components with the compose function and avoid the warning produced on react 16 version (Warning: Stateless function components cannot be given refs.).
This PR makes the ref created to the child component as an option. This will enable you to wrap by default stateless components with the compose function and avoid the warning produced on react 16 version (
Warning: Stateless function components cannot be given refs.
).