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

[shape] add innerRef prop to shapes. fixes #140 #168

Merged
merged 7 commits into from
Oct 7, 2017
Merged

Conversation

hshoff
Copy link
Member

@hshoff hshoff commented Oct 7, 2017

Fix for #140

Pass a ref callback function as the innerRef prop to get the backing ref.

<LinePath
  innerRef={(node) => { this.myCoolLine = node; }}
 // ...
/>

More about refs: https://reactjs.org/docs/refs-and-the-dom.html

@hshoff hshoff added this to the v0.0.142 milestone Oct 7, 2017
@hshoff hshoff merged commit 0955af6 into master Oct 7, 2017
@hshoff hshoff deleted the harry-refs branch October 7, 2017 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant