Skip to content

Commit 91e8922

Browse files
committed
make progress
1 parent 0ed52b4 commit 91e8922

File tree

17 files changed

+46
-9293
lines changed

17 files changed

+46
-9293
lines changed

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@
3535

3636
## Prerequisites
3737

38-
- Read my blog post
39-
[Inversion of Control](https://kentcdodds.com/blog/inversion-of-control). Or
40-
watch
41-
[Implement Inversion of Control](https://egghead.io/lessons/egghead-implement-inversion-of-control?pl=kent-s-blog-posts-as-screencasts-eefa540c&af=5236ad)
4238
- The more experience you have with building React abstractions, the more
4339
helpful this workshop will be for you.
4440

@@ -47,7 +43,8 @@
4743
Here are some resources you can read before taking the workshop to get you up to
4844
speed on some of the tools and concepts we'll be covering:
4945

50-
- TODO: add resources
46+
- [Inversion of Control](https://kentcdodds.com/blog/inversion-of-control)
47+
- [Implement Inversion of Control](https://egghead.io/lessons/egghead-implement-inversion-of-control?pl=kent-s-blog-posts-as-screencasts-eefa540c&af=5236ad)
5148

5249
## System Requirements
5350

exercises/01.latest-ref/01.problem/README.mdx renamed to exercises/01.latest-ref/01.problem.ref/README.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Latest Ref
22

3-
In our exercise, we have a `useDebounce` function that isn't working the way we
4-
want with hooks. We're going to need to "change the default" using the latest
3+
👨‍💼 In our exercise, we have a `useDebounce` function that isn't working the way
4+
we want with hooks. We're going to need to "change the default" using the latest
55
ref pattern.
66

77
`debounce` is a pattern that's often used in user-input fields. For example, if
@@ -29,7 +29,7 @@ want to make it so this works:
2929

3030
(Keep in mind, the tests are there to help you know you got it right).
3131

32-
Before continuing here, please familiarize yourself with the exercise and how
32+
Before continuing here, please familiarize yourself with the code to know how
3333
it's implemented... Got it? Great, let's continue.
3434

3535
Right now, you can play around with two different problems with the way our

exercises/01.latest-ref/README.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# Latest Ref
22

3-
**One liner:** The Latest Ref Pattern allows you to have a reference to the
4-
latest value of a prop, state, or callback without needing to list it in a
5-
dependency array when accessing it in a `useEffect`.
3+
<callout-success>
4+
**One liner:** The Latest Ref Pattern allows you to have a reference to the
5+
latest value of a prop, state, or callback without needing to list it in a
6+
dependency array when accessing it in a `useEffect`.
7+
</callout-success>
68

79
When React introduced hooks it did more than give us an excellent primitive with
810
super abstract-ability powers. It also changed an important default that results

exercises/02.composition/README.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# Composition
22

3-
**One liner:** The Composition and Layout Components Pattern helps to avoid the
4-
prop drilling problem and enhances the reusability of your components.
3+
<callout-success>
4+
**One liner:** The Composition and Layout Components Pattern helps to avoid
5+
the prop drilling problem and enhances the reusability of your components.
6+
</callout-success>
57

68
🦉 If you're unfamiliar with the concept of "Prop Drilling" then please read
79
[this blog post](https://kentcdodds.com/blog/prop-drilling) before going

exercises/03.compound-components/README.mdx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# Compound Components
22

3-
**One liner:** The Compound Components Pattern enables you to provide a set of
4-
components that implicitly share state for a simple yet powerful declarative API
5-
for reusable components.
3+
<callout-success>
4+
**One liner:** The Compound Components Pattern enables you to provide a set of
5+
components that implicitly share state for a simple yet powerful declarative
6+
API for reusable components.
7+
</callout-success>
68

79
Compound components are components that work together to form a complete UI. The
810
classic example of this is `<select>` and `<option>` in HTML:
@@ -37,7 +39,7 @@ it's selected? We can easily add API surface area to support these use cases,
3739
but that's just more for us to code and more for users to learn. That's where
3840
compound components come in really handy!
3941

40-
import { Toggle } from '../07.control-props/02.solution.warnings/toggle'
42+
import { Toggle } from '../07.control-props/01.solution/toggle'
4143

4244
For the rest of the exercises in this workshop, we'll be working with a Toggle
4345
component. Specifically, this one:
@@ -67,7 +69,7 @@ pattern.
6769

6870
**Real World Projects that use this pattern:**
6971

70-
- [`@reach/tabs`](https://reacttraining.com/reach-ui/tabs)
71-
- [`@reach/accordion`](https://reacttraining.com/reach-ui/accordion)
72-
- Actually most of [Reach UI](https://reacttraining.com/reach-ui) implements
72+
- [`@radix-ui/react-tabs`](https://www.radix-ui.com/primitives/docs/components/tabs)
73+
- [`@radix-ui/react-accordion`](https://www.radix-ui.com/primitives/docs/components/accordion)
74+
- Actually most of [Radix UI](https://www.radix-ui.com/primitives) implements
7375
this pattern

0 commit comments

Comments
 (0)