Skip to content

Commit 288fb48

Browse files
Fix copywriting nitpicks (Modules 5-8) (#394)
1 parent 64b8c0d commit 288fb48

File tree

6 files changed

+16
-12
lines changed

6 files changed

+16
-12
lines changed

exercises/05.typescript/06.problem.satisfies/README.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ See? No type widening! Wahoo!
2929

3030
<callout-info>
3131
Before `satisfies` came out, we had to use a "Constrained Identity Function"
32-
(pattern coined by your's truly). Learn more in **[How to write a Constrained
32+
(pattern coined by yours truly). Learn more in **[How to write a Constrained
3333
Identity Function (CIF) in
3434
TypeScript](https://kentcdodds.com/blog/how-to-write-a-constrained-identity-function-in-typescript)**
3535
</callout-info>

exercises/05.typescript/README.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ Don't worry if you struggle with TypeScript at first, the more you use it, the
125125
better you'll get at it, just like anything else.
126126

127127
<callout-info>
128-
Note: we're moving from the `*.html` files to `*.tsx` files. This is more
128+
Note: We're moving from the `*.html` files to `*.tsx` files. This is more
129129
real-world and also your editor likely supports TypeScript better within
130130
TypeScript files rather than HTML files. From here on out, the `index.tsx`
131131
file will be loaded onto the page automatically. We'll also get live reload of

exercises/06.styling/01.problem.style/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const smallBox = <div>small lightblue box</div>
1414
const mediumBox = <div>medium pink box</div>
1515
const largeBox = <div>large orange box</div>
1616

17-
// 💰 the sizelssColorlessBox should still be a box, just with no size or color
17+
// 💰 the sizelessColorlessBox should still be a box, just with no size or color
1818
const sizelessColorlessBox = <div>sizeless colorless box</div>
1919

2020
function App() {

exercises/06.styling/README.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<EpicVideo url="https://www.epicreact.dev/workshops/react-fundamentals/intro-to-styling" />
44

5-
There are two primary ways to style react components
5+
There are two primary ways to style React components
66

77
1. Inline styles with the `style` prop
88
2. Regular CSS with the `className` prop
@@ -70,7 +70,7 @@ some significant limitations (like lack of media queries and pseudo-selectors),
7070
so it's not always the best choice.
7171

7272
<callout-warning class="aside">
73-
Note that in react the `{{` and `}}` is actually a combination of a JSX
73+
Note that in React the `{{` and `}}` is actually a combination of a JSX
7474
expression and an object expression. The same example above could be written
7575
like so:
7676

exercises/08.inputs/01.problem.checkbox/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function App() {
2626
<label htmlFor="colorInput">Favorite Color:</label>
2727
<input id="colorInput" name="color" type="color" />
2828
</div>
29-
{/* 🐨 add a checkbox with the label "Waiver Signed" */}
29+
{/* 🐨 add a checkbox named "waiver" with the label "Waiver Signed" */}
3030
{/* 💰 put the <input> inside the <label> */}
3131
<div>
3232
<label htmlFor="startDateInput">Start Date:</label>

exercises/08.inputs/03.problem.radio/README.mdx

+10-6
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@ that's the best option. Instead, let's use a radio group.
88

99
📜 You can [learn about radio groups on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/radio)
1010

11-
What's interesting about radio groups is that they are a group of inputs that
12-
share the same name. Only one of them can be selected at a time. Each radio
13-
input needs its own `label`. To label the entire group, you can use a
14-
`<fieldset>` and a `<legend>`.
11+
What's interesting about radio groups is that each radio group can contain
12+
multiple inputs that share the same name. Only one of them can be selected at
13+
a time. Each radio input needs its own `label`. To label the entire group, you
14+
can use a `<fieldset>` and a `<legend>`.
1515

16-
Similar to checkboxes, to set the default value, you need to add the `checked`
17-
attribute to the input you want to be selected by default.
16+
<callout-info>
17+
Note: Similar to checkboxes, to set the default value, you can set the
18+
`checked` attribute to the input you want to be selected by default... but
19+
in React, that will make your input read-only! We'll learn more about how
20+
to set default values in React in a future lesson.
21+
</callout-info>
1822

1923
Similar to a select `option`, you need to set the `value` on the input to
2024
determine what value will be sent to the server when the form is submitted.

0 commit comments

Comments
 (0)