Browse Source

chore: fix typos (#4121)

main
Sofya Tuymedova 3 years ago
committed by GitHub
parent
commit
d8800be079
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      beta/src/pages/learn/index.md

4
beta/src/pages/learn/index.md

@ -178,7 +178,7 @@ img { margin: 0 10px 10px 0; height: 90px; }
You might wonder why `className="avatar"` uses quotes but `src={imageUrl}` uses curly braces. In JSX, curly braces are like a ["window into JavaScript"](/learn/javascript-in-jsx-with-curly-braces). They let you run a bit of JavaScript right in your markup! So `src={imageUrl}` reads the `imageUrl` prop declared on the first line and passed from the parent `Gallery` component.
In the above example, all the data was written directly in markup. However, you'll often want to keep it separately. Here, the data is kept in an array. In React, you use JavaScript functions like [`map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map) to [renders lists](/learn/rendering-lists) of things.
In the above example, all the data was written directly in markup. However, you'll often want to keep it separately. Here, the data is kept in an array. In React, you use JavaScript functions like [`map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map) to [render lists](/learn/rendering-lists) of things.
<Sandpack>
@ -708,7 +708,7 @@ Read **[Managing State](/learn/managing-state)** to learn how to keep your compo
## Next steps {/*next-steps*/}
This page was fast-paced! If you've read this far, you have already seen 80% of React you will use on daily basis.
This page was fast-paced! If you've read this far, you have already seen 80% of React you will use on a daily basis.
Your next steps depend on what you'd like to do:

Loading…
Cancel
Save