Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React forward ref #37

Merged
merged 7 commits into from
Aug 13, 2018
Merged

React forward ref #37

merged 7 commits into from
Aug 13, 2018

Conversation

hartzis
Copy link
Collaborator

@hartzis hartzis commented Aug 9, 2018

  • add forwardRef
  • remove getComponent

TODO:

  • fix tests
    • add test that uses refs
  • update docs

i'd like to get a v1.0.0-rc1 release candidate out there soonish so i can start using in codesandbox and maybe get a react-google-recaptcha release candidate v1.0.0 out using this release candidate 😸

@hartzis hartzis added the do not merge work in progress, don't merge yet label Aug 9, 2018
@hartzis hartzis mentioned this pull request Aug 9, 2018
7 tasks
@dozoisch
Copy link
Owner

dozoisch commented Aug 9, 2018

nice nice!

<ComponentWrapper />
<div>
<ComponentWrapper />
</div>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think ReactTestUtils.renderIntoDocument changed a bit with react versions, so we aren't able to just have the Component render then call unmountComponentAtNode, i needed to wrap in a div 🤷‍♂️

@hartzis hartzis removed the do not merge work in progress, don't merge yet label Aug 11, 2018
@hartzis hartzis changed the title [WIP] React forward ref React forward ref Aug 11, 2018
@hartzis
Copy link
Collaborator Author

hartzis commented Aug 11, 2018

i'd like to get a v1.0.0-rc1 release candidate out there soonish so i can start using in codesandbox and maybe get a react-google-recaptcha release candidate v1.0.0 out using this release candidate 😸

@hartzis
Copy link
Collaborator Author

hartzis commented Aug 12, 2018

@dozoisch mind giving this a final review? if good let's get a release candidate out?

@hartzis hartzis requested a review from dozoisch August 12, 2018 17:15
@dozoisch dozoisch merged commit 92511f8 into master Aug 13, 2018
@dozoisch dozoisch deleted the react-forward-ref branch August 13, 2018 00:45
@dozoisch
Copy link
Owner

Published as the @next tag! Should be available on npm. :)

@dozoisch
Copy link
Owner

@hartzis Amazing work, thank you so much for pushing all of this through 🎉

@hartzis
Copy link
Collaborator Author

hartzis commented Aug 13, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants