Merge pull request #748 from tgallacher/fix/blog-react-v-16-3

Fix: added missing component instantiation within the 'forwardRef' AP…
This commit is contained in:
Brian Vaughn
2018-04-08 11:15:57 -07:00
committed by GitHub

View File

@@ -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();