Remove error ref to the 'render' function (#8781)

What is the `render` function of a functional component?
This commit is contained in:
Vladimir Tikunov
2017-01-14 13:36:55 -06:00
committed by Brandon Dail
parent 6a488913b9
commit ebd83e809e
+1 -1
View File
@@ -73,7 +73,7 @@ class AutoFocusTextInput extends React.Component {
}
```
You may not use the `ref` attribute on functional components because they don't have instances. You can, however, use the `ref` attribute inside the `render` function of a functional component:
You may not use the `ref` attribute on functional components because they don't have instances. You can, however, use the `ref` attribute inside the functional component:
```javascript{2,3,6,13}
function CustomTextInput(props) {