From f14f1477d59feed4cef09c7eca77c521d06d9462 Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Sun, 18 Mar 2018 08:03:28 -0700 Subject: [PATCH] Renamed ref in example --- examples/16-3-release-blog-post/create-ref-example.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); } }