diff --git a/examples/16-3-release-blog-post/forward-ref-example.js b/examples/16-3-release-blog-post/forward-ref-example.js index e2ed1431..6d70efdd 100644 --- a/examples/16-3-release-blog-post/forward-ref-example.js +++ b/examples/16-3-release-blog-post/forward-ref-example.js @@ -25,6 +25,10 @@ function withTheme(Component) { )); } +// Here we assume that FancyButton has been imported into the current scope +const FancyThemedButton = withTheme(FancyButton); + +// Create a ref using the new Referenace API, as above // highlight-next-line const fancyButtonRef = React.createRef();