fixes #763
This commit is contained in:
Alex Krolick
2018-04-03 10:13:42 -07:00
committed by GitHub
parent cf7329d6bd
commit 1dccf07a89

View File

@@ -37,7 +37,7 @@ Your first inclination may be to use refs to "make things happen" in your app. I
### Creating Refs
Refs are created using `React.createRef()` and attached to React elements via the `ref` attribute. Refs are commonly assigned to an instance property when a component is constructed so they can be referenced throughout the the component.
Refs are created using `React.createRef()` and attached to React elements via the `ref` attribute. Refs are commonly assigned to an instance property when a component is constructed so they can be referenced throughout the component.
```javascript{4,7}
class MyComponent extends React.Component {