Skip to content

Commit 5ba8e04

Browse files
authored
Merge pull request #748 from tgallacher/fix/blog-react-v-16-3
Fix: added missing component instantiation within the 'forwardRef' AP…
2 parents e4941f6 + 17d04ac commit 5ba8e04

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

examples/16-3-release-blog-post/forward-ref-example.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ function withTheme(Component) {
2525
));
2626
}
2727

28+
// Here we assume that FancyButton has been imported into the current scope
29+
const FancyThemedButton = withTheme(FancyButton);
30+
31+
// Create a ref using the new Referenace API, as above
2832
// highlight-next-line
2933
const fancyButtonRef = React.createRef();
3034

0 commit comments

Comments
 (0)