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