mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user