1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 07:08:01 +00:00

Fix a couple minor typos

This commit is contained in:
jbranchaud
2018-02-01 11:14:00 -06:00
parent 8f44d79534
commit d00f405a04

View File

@@ -15,7 +15,7 @@ class MyAutofocusInput extends React.Component {
if (component) {
component.focus();
}
}
};
render() {
return (
@@ -24,7 +24,7 @@ class MyAutofocusInput extends React.Component {
value={this.props.value}
onChange={this.props.onChange}
/>
)
);
}
}
```
@@ -32,7 +32,7 @@ class MyAutofocusInput extends React.Component {
When this component gets rendered, the input will be focused via our
`focusInput` function.
Note: refs only work with class component, so don't try to use it on a
Note: refs only work with class components, so don't try to use it with a
functional component.
See [Refs and the DOM](https://reactjs.org/docs/refs-and-the-dom.html) in