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 af6bb9f4..aca46dd2 100644 --- a/examples/16-3-release-blog-post/forward-ref-example.js +++ b/examples/16-3-release-blog-post/forward-ref-example.js @@ -24,6 +24,10 @@ function withTheme(Component) { return React.forwardRef(ThemedComponent); } +// 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();