Skip to content

Commit fc9f438

Browse files
Copywriting nitpicks (Modules 01.01-04.01) (#386)
1 parent a79f6d2 commit fc9f438

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

exercises/02.raw-react/02.problem.nesting/README.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ generate this DOM output:
1212
</div>
1313
```
1414

15-
Hint: you can either use the `children` prop or additional arguments after the
15+
Hint: You can either use the `children` prop or additional arguments after the
1616
props. If you use the `children` prop, you will get a warning in the developer
1717
console about needing a "key" prop. We'll get to that later.
1818

19-
Tip, you'll use `createElement` for the `span` elements, but to get the
19+
Tip: You'll use `createElement` for the `span` elements, but to get the
2020
space between them, you'll need to use a string (`' '`) to tell React to create
21-
a [`textNode`](https://developer.mozilla.org/en-US/docs/Web/API/Text)
21+
a [`textNode`](https://developer.mozilla.org/en-US/docs/Web/API/Text).
2222

2323
- [📜 `createElement`](https://react.dev/reference/react/createElement#createelement)

exercises/03.using-jsx/02.problem.interpolation/README.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const children = 'Hello World'
2222
const element = <div className="hmmm">how do I make this work?</div>
2323
```
2424

25-
📜 The react docs for JSX are pretty good:
25+
📜 The React docs for JSX are pretty good:
2626
[Writing Markup with JSX](https://react.dev/learn/writing-markup-with-jsx)
2727

2828
Here are a few sections of particular interest for this step:

exercises/04.components/01.solution.function/README.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
👨‍💼 Super, but that's definitely not the most fun way to use custom components.
66
In fact, we're technically not creating a custom component at all. We're just
77
interpolating a function call into our template. This will have interesting
8-
implications in the future with react features like state and effects.
8+
implications in the future with React features like state and effects.
99

10-
Instead, let's create react elements out of this function which is what we're
10+
Instead, let's create React elements out of this function which is what we're
1111
going for...

exercises/04.components/02.solution.raw/README.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
<EpicVideo url="https://www.epicreact.dev/workshops/react-fundamentals/raw-api/solution" />
44

5-
👨‍💼 Great! While that's not really all that nicer to work with, it does get us a
6-
centimeter closer to our goal of using JSX with custom components. It's also
7-
interesting to throw a couple console logs around and see how using
5+
👨‍💼 Great! While that's not really all that much nicer to work with, it does
6+
get us a centimeter closer to our goal of using JSX with custom components.
7+
It's also interesting to throw a couple console logs around and see how using
88
`createElement` compares to simply calling the function directly in our
99
JSX.
1010

exercises/04.components/03.problem.jsx/README.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ element = <message>Hello World</message>
1717
And we're so close! Just like using JSX for regular `div`s is nicer than using
1818
the raw `createElement` API, using JSX for custom components is nicer too.
1919
Remember that it's Babel that's responsible for taking our JSX and compiling it
20-
to `createElement` calls. If we try `<message>Hello World</message>,
20+
to `createElement` calls. If we try `<message>Hello World</message>`,
2121
here's what Babel will do:
2222

2323
```tsx

exercises/04.components/04.problem.props/README.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"props" which is the object your component function accepts as an argument.
77

88
So now, we're going to use a `Calculator` component that can display an
9-
equation and it's solution, like so:
9+
equation and its solution, like so:
1010

1111
```tsx
1212
element = <Calculator left={1} operator="+" right={2} />

exercises/04.components/04.problem.props/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// 💰 you can get the result with: operations[operator](left, right)
2121
return (
2222
<div>
23-
{/* 🐨 render the equation and it's result here */}
23+
{/* 🐨 render the equation and its result here */}
2424
{/* 💰 open the final version in the app if you're unsure */}
2525
</div>
2626
)

0 commit comments

Comments
 (0)