Browse Source

docs(refs-and-the-dom): typo in CustomTextInput (#813)

Correct a typo in the render method comments for the "CustomTextInput" component of the "Adding a Ref to a DOM Element" example.  The first line of the comments reads "tell React that we want the associate the <input> ref".  The word "the" should be "to" resulting in the comment "tell React that we want to associate the <input> ref".
main
Marc Bouchard 7 years ago
committed by Dan Abramov
parent
commit
5593059434
  1. 2
      content/docs/refs-and-the-dom.md

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

@ -87,7 +87,7 @@ class CustomTextInput extends React.Component {
}
render() {
// tell React that we want the associate the <input> ref
// tell React that we want to associate the <input> ref
// with the `textInput` that we created in the constructor
return (
<div>

Loading…
Cancel
Save