jquense / uncontrollable

Wrap a controlled react component, to allow specific prop/handler pairs to be uncontrolled
MIT License
200 stars 35 forks source link

feat: Support forwardRef() #30

Closed jquense closed 6 years ago

jquense commented 6 years ago

When running react >= 16.3.0, refs will automatically be forwarded to the underlying component, which means no need to manually whitelist methods

BREAKING CHANGE: attached refs are now the original components, and not the uncontrolled component instance

BREAKING CHANGE: removed getControlledInstance so there are no special methods on the uncontrolled component

jquense commented 6 years ago

:tada: This PR is included in version 6.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: