Skip to content

Commit

Permalink
Merge pull request TheOdinProject#25930 from warisu/patch-1
Browse files Browse the repository at this point in the history
Update rendering_techniques.md typo error
  • Loading branch information
Carlos Diaz authored Jul 28, 2023
2 parents 6e884c5 + 4f27366 commit 2292fd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion react/getting_started_with_react/rendering_techniques.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function App() {

We have moved our `<ul>` element to a different component called `<List />`. It still returns the `<ul>` element, but we can do a lot more with it as a component.

This component accepts a `props` which is an object containing the `animals` that we defined as a property when we wrote `<List animals={animals}>`. Do note that you can name it anything, for example, `<List animalList={animals} />`. You will still need to pass the animals to the property, but now you will use `props.animalList` instead of `props.animals`.
This component accepts a `props` which is an object containing the `animals` that we defined as a property when we wrote `<List animals={animals} />`. Do note that you can name it anything, for example, `<List animalList={animals} />`. You will still need to pass the animals to the property, but now you will use `props.animalList` instead of `props.animals`.

We have also created a different component for the `<li>` element called `<ListItem />`, which also accepts `props`, and uses `props.animal` to render the text. It should now render the same thing.

Expand Down

0 comments on commit 2292fd4

Please sign in to comment.