Browse Source

docs: fix typos (#4706)

main
Thomas Broadley 3 years ago
committed by GitHub
parent
commit
81d4f68092
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      beta/src/pages/apis/useref.md
  2. 2
      beta/src/pages/learn/your-first-component.md

2
beta/src/pages/apis/useref.md

@ -206,7 +206,7 @@ When you break these rules, your component might still work, but most of the new
### Manipulating the DOM with a ref {/*manipulating-the-dom-with-a-ref*/}
It's particularly common to use a ref to manipulate the [DOM](https://developer.mozilla.org/en-US/docs/Web/API/HTML_DOM_API). React has bulit-in support for this.
It's particularly common to use a ref to manipulate the [DOM](https://developer.mozilla.org/en-US/docs/Web/API/HTML_DOM_API). React has built-in support for this.
First, declare a <CodeStep step={1}>ref object</CodeStep> with an <CodeStep step={3}>initial value</CodeStep> of `null`:

2
beta/src/pages/learn/your-first-component.md

@ -398,7 +398,7 @@ img { margin: 0 10px 10px 0; }
### Your own component {/*your-own-component*/}
Write a component from scratch. You can give it any valid name and return any markup. If you're out of ideas, you can write a `Congratulations` component thats shows `<h1>Good job!</h1>`. Don't forget to export it!
Write a component from scratch. You can give it any valid name and return any markup. If you're out of ideas, you can write a `Congratulations` component that shows `<h1>Good job!</h1>`. Don't forget to export it!
<Sandpack>

Loading…
Cancel
Save