Skip to content

Commit

Permalink
Merge pull request #121 from vspedr/patch-1
Browse files Browse the repository at this point in the history
Fix React w/ refs example
  • Loading branch information
willmcpo authored Jul 12, 2019
2 parents 5416a7a + 3ec5e66 commit afd74d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class SomeComponent extends React.Component {
render() {
return (
// 6. Pass your ref with the reference to the targetElement to SomeOtherComponent
<SomeOtherComponent ref={this.targetElement}>
<SomeOtherComponent ref={this.targetRef}>
some JSX to go here
</SomeOtherComponent>
);
Expand Down

0 comments on commit afd74d7

Please sign in to comment.