diff --git a/content/docs/refs-and-the-dom.md b/content/docs/refs-and-the-dom.md index f16790fa2..4d31a1054 100644 --- a/content/docs/refs-and-the-dom.md +++ b/content/docs/refs-and-the-dom.md @@ -111,7 +111,7 @@ React will assign the `value` property with the DOM element when the component m If we wanted to wrap the `CustomTextInput` above to simulate it being clicked immediately after mounting, we could use a ref to get access to the custom input and call its `focusTextInput` method manually: -```javascript{4,7,12} +```javascript{4,8,13} class AutoFocusTextInput extends React.Component { constructor(props) { super(props);