diff --git a/examples/16-3-release-blog-post/create-ref-example.js b/examples/16-3-release-blog-post/create-ref-example.js index 7589fafa..d91cb6c2 100644 --- a/examples/16-3-release-blog-post/create-ref-example.js +++ b/examples/16-3-release-blog-post/create-ref-example.js @@ -1,14 +1,14 @@ class MyComponent extends React.Component { // highlight-next-line - divRef = React.createRef(); + inputRef = React.createRef(); render() { // highlight-next-line - return ; + return ; } componentDidMount() { // highlight-next-line - this.divRef.current.focus(); + this.inputRef.current.focus(); } }