Browse Source

~the~

fixes #763
main
Alex Krolick 7 years ago
committed by GitHub
parent
commit
1dccf07a89
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      content/docs/refs-and-the-dom.md

2
content/docs/refs-and-the-dom.md

@ -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 {

Loading…
Cancel
Save