Skip to content

Commit

Permalink
fix urls
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Aug 27, 2024
1 parent d6838ff commit ab087c5
Show file tree
Hide file tree
Showing 24 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion exercises/01.use-state/01.problem.initial-state/README.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Initial State

<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/use-state/render-an-initial-state" />
<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/render-an-initial-state" />

👨‍💼 Hello! So here's where we're starting out:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Initial State

<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/use-state/render-an-initial-state/solution" />
<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/render-an-initial-state/solution" />

👨‍💼 Great work! Now at least we're not just throwing an error. But let's handle
the state update next.
2 changes: 1 addition & 1 deletion exercises/01.use-state/02.problem.update-state/README.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Update State

<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/use-state/make-the-setstate-function-work" />
<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/make-the-setstate-function-work" />

👨‍💼 Alright, right now when you click the button, nothing happens. Let's get it
to update the state.
Expand Down
2 changes: 1 addition & 1 deletion exercises/01.use-state/02.solution.update-state/README.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Update State

<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/use-state/make-the-setstate-function-work/solution" />
<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/make-the-setstate-function-work/solution" />

👨‍💼 So we're updating the state value, but it's not actually updating the number
in the button? What gives?!
2 changes: 1 addition & 1 deletion exercises/01.use-state/03.problem.re-render/README.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Re-render

<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/use-state/component-doesn-t-re-render-when-state-updates" />
<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/component-doesn-t-re-render-when-state-updates" />

👨‍💼 Ok, so we're initializing our state properly and we're updating the state
properly as well. The problem is we're not updating the UI when the state gets
Expand Down
2 changes: 1 addition & 1 deletion exercises/01.use-state/03.solution.re-render/README.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Re-render

<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/use-state/component-doesn-t-re-render-when-state-updates/solution" />
<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/component-doesn-t-re-render-when-state-updates/solution" />

👨‍💼 Great work! Now we're not only updating the state, but we're also triggering
a re-render so the UI can be updated. Unfortunately that seems to not be working
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Preserve State

<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/use-state/state-is-reset-to-initialstate-on-each-render" />
<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/state-is-reset-to-initialstate-on-each-render" />

👨‍💼 Alright, so there are actually two problems here. First, when the user clicks
on the button, we update the `state` variable inside the `useState` closure, but
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Preserve State

<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/use-state/state-is-reset-to-initialstate-on-each-render/solution" />
<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/state-is-reset-to-initialstate-on-each-render/solution" />

👨‍💼 Great work! Our UI is working properly! By preserving our state we're able to
make changes to it and render again whenever that value changes.
2 changes: 1 addition & 1 deletion exercises/01.use-state/FINISHED.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# useState

<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/use-state/dad-joke-and-break-usestate" />
<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/dad-joke-and-break-usestate" />

👨‍💼 This is a great time for you to take a break and reflect on your learnings so
far. Take a moment and then when you're ready, we'll see you in the next
Expand Down
2 changes: 1 addition & 1 deletion exercises/01.use-state/README.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# useState

<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/use-state/introduction-to-usestate" />
<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/introduction-to-usestate" />

The `useState` hook is one of the most common hooks and is a good place for us
to start because it triggers re-rendering of the component and we can observe
Expand Down
2 changes: 1 addition & 1 deletion exercises/02.multiple-hooks/01.problem.phase/README.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Render Phase

<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/multiple-hooks/multiple-calls-to-usestate-breaks-initialstate" />
<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/multiple-calls-to-usestate-breaks-initialstate" />

🧝‍♂️ Hi! I made a change to the code a bit. Now we're rendering two buttons, the
count button is still there, but now we're also a button for disabling the count
Expand Down
2 changes: 1 addition & 1 deletion exercises/02.multiple-hooks/01.solution.phase/README.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Render Phase

<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/multiple-hooks/multiple-calls-to-usestate-breaks-initialstate/solution" />
<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/multiple-calls-to-usestate-breaks-initialstate/solution" />

👨‍💼 Great! It's not quite working yet, now if we add
`console.log({ count, enabled })` to the component, we'll get
Expand Down
2 changes: 1 addition & 1 deletion exercises/02.multiple-hooks/02.problem.hook-id/README.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Hook ID

<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/multiple-hooks/all-usestate-hooks-are-overwriting-the-same-state" />
<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/all-usestate-hooks-are-overwriting-the-same-state" />

👨‍💼 Based on what's happening now, I think we're not isolating the `state`
between the two hooks. We need to uniquely identify each hook and store their
Expand Down
2 changes: 1 addition & 1 deletion exercises/02.multiple-hooks/02.solution.hook-id/README.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Hook ID

<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/multiple-hooks/all-usestate-hooks-are-overwriting-the-same-state/solution" />
<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/all-usestate-hooks-are-overwriting-the-same-state/solution" />

👨‍💼 Hey, that works! And now you understand why it's important to avoid
conditionally calling hooks or call them in loops. Their call order is their
Expand Down
2 changes: 1 addition & 1 deletion exercises/02.multiple-hooks/FINISHED.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Multiple Hooks

<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/multiple-hooks/dad-joke-and-break-multiple-hooks" />
<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/dad-joke-and-break-multiple-hooks" />

👨‍💼 Whew, now we've got multiple `useState` hooks in a single component working!
It's a good time for a break. Write down what you learned, then we'll see you
Expand Down
2 changes: 1 addition & 1 deletion exercises/02.multiple-hooks/README.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Multiple Hooks

<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/multiple-hooks/introduction-to-multiple-hooks" />
<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/introduction-to-multiple-hooks" />

Often components require more than a single hook. In fact, often they'll use
two or more of the `useState` hook. If we tried that with our implementation
Expand Down
2 changes: 1 addition & 1 deletion exercises/03.use-effect/01.problem.callback/README.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Callback

<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/use-effect/replace-react-s-useeffect-with-your-own" />
<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/replace-react-s-useeffect-with-your-own" />

🧝‍♂️ I've added a `useEffect`, but it's not supported yet so the app's busted:

Expand Down
2 changes: 1 addition & 1 deletion exercises/03.use-effect/01.solution.callback/README.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Callback

<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/use-effect/replace-react-s-useeffect-with-your-own/solution" />
<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/replace-react-s-useeffect-with-your-own/solution" />

👨‍💼 Great job! Now, can you handle the dependency array?
2 changes: 1 addition & 1 deletion exercises/03.use-effect/02.problem.dependencies/README.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Dependencies

<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/use-effect/requirements-for-the-dependency-array" />
<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/requirements-for-the-dependency-array" />

🧝‍♂️ I've updated the `useEffect`:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Dependencies

<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/use-effect/requirements-for-the-dependency-array/solution" />
<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/requirements-for-the-dependency-array/solution" />

👨‍💼 Great work! Now the `useEffect` dependencies work. Well done 👏
2 changes: 1 addition & 1 deletion exercises/03.use-effect/FINISHED.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# useEffect

<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/use-effect/dad-joke-and-break-use-effect" />
<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/dad-joke-and-break-use-effect" />

👨‍💼 That's as far as we're going to take `useEffect`. Unfortunately there's just
not a good way to handle the cleanup function since we don't have a way to track
Expand Down
2 changes: 1 addition & 1 deletion exercises/03.use-effect/README.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# useEffect

<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/use-effect/introduction-to-useeffect" />
<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/introduction-to-useeffect" />

The `useEffect` hook has a simple API:

Expand Down
2 changes: 1 addition & 1 deletion exercises/FINISHED.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Build React Hooks 🪝

<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/outro-build-react-hooks/build-react-hooks-outro" />
<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/build-react-hooks-outro" />

Hooray! You're all done! 👏👏

Expand Down
2 changes: 1 addition & 1 deletion exercises/README.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Build React Hooks 🪝

<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/introduction-build-react-hooks/build-react-hooks-introduction" />
<EpicVideo url="https://www.epicreact.dev/tutorials/build-react-hooks/build-react-hooks-introduction" />

👨‍💼 Hello, my name is Peter the Product Manager. I'm here to help you get
oriented and to give you your assignments for the workshop!
Expand Down

0 comments on commit ab087c5

Please sign in to comment.