From ab087c52e9e91572aea440757c704ece01dcca87 Mon Sep 17 00:00:00 2001 From: "Kent C. Dodds" Date: Tue, 27 Aug 2024 17:47:00 -0600 Subject: [PATCH] fix urls --- exercises/01.use-state/01.problem.initial-state/README.mdx | 2 +- exercises/01.use-state/01.solution.initial-state/README.mdx | 2 +- exercises/01.use-state/02.problem.update-state/README.mdx | 2 +- exercises/01.use-state/02.solution.update-state/README.mdx | 2 +- exercises/01.use-state/03.problem.re-render/README.mdx | 2 +- exercises/01.use-state/03.solution.re-render/README.mdx | 2 +- exercises/01.use-state/04.problem.preserve-state/README.mdx | 2 +- exercises/01.use-state/04.solution.preserve-state/README.mdx | 2 +- exercises/01.use-state/FINISHED.mdx | 2 +- exercises/01.use-state/README.mdx | 2 +- exercises/02.multiple-hooks/01.problem.phase/README.mdx | 2 +- exercises/02.multiple-hooks/01.solution.phase/README.mdx | 2 +- exercises/02.multiple-hooks/02.problem.hook-id/README.mdx | 2 +- exercises/02.multiple-hooks/02.solution.hook-id/README.mdx | 2 +- exercises/02.multiple-hooks/FINISHED.mdx | 2 +- exercises/02.multiple-hooks/README.mdx | 2 +- exercises/03.use-effect/01.problem.callback/README.mdx | 2 +- exercises/03.use-effect/01.solution.callback/README.mdx | 2 +- exercises/03.use-effect/02.problem.dependencies/README.mdx | 2 +- exercises/03.use-effect/02.solution.dependencies/README.mdx | 2 +- exercises/03.use-effect/FINISHED.mdx | 2 +- exercises/03.use-effect/README.mdx | 2 +- exercises/FINISHED.mdx | 2 +- exercises/README.mdx | 2 +- 24 files changed, 24 insertions(+), 24 deletions(-) diff --git a/exercises/01.use-state/01.problem.initial-state/README.mdx b/exercises/01.use-state/01.problem.initial-state/README.mdx index 6aaa5ba..192bed9 100644 --- a/exercises/01.use-state/01.problem.initial-state/README.mdx +++ b/exercises/01.use-state/01.problem.initial-state/README.mdx @@ -1,6 +1,6 @@ # Initial State - + 👨‍💼 Hello! So here's where we're starting out: diff --git a/exercises/01.use-state/01.solution.initial-state/README.mdx b/exercises/01.use-state/01.solution.initial-state/README.mdx index 83aea43..330a136 100644 --- a/exercises/01.use-state/01.solution.initial-state/README.mdx +++ b/exercises/01.use-state/01.solution.initial-state/README.mdx @@ -1,6 +1,6 @@ # Initial State - + 👨‍💼 Great work! Now at least we're not just throwing an error. But let's handle the state update next. diff --git a/exercises/01.use-state/02.problem.update-state/README.mdx b/exercises/01.use-state/02.problem.update-state/README.mdx index 88ec45b..06c6b5d 100644 --- a/exercises/01.use-state/02.problem.update-state/README.mdx +++ b/exercises/01.use-state/02.problem.update-state/README.mdx @@ -1,6 +1,6 @@ # Update State - + 👨‍💼 Alright, right now when you click the button, nothing happens. Let's get it to update the state. diff --git a/exercises/01.use-state/02.solution.update-state/README.mdx b/exercises/01.use-state/02.solution.update-state/README.mdx index caf9365..92ad032 100644 --- a/exercises/01.use-state/02.solution.update-state/README.mdx +++ b/exercises/01.use-state/02.solution.update-state/README.mdx @@ -1,6 +1,6 @@ # Update State - + 👨‍💼 So we're updating the state value, but it's not actually updating the number in the button? What gives?! diff --git a/exercises/01.use-state/03.problem.re-render/README.mdx b/exercises/01.use-state/03.problem.re-render/README.mdx index 7ab5161..2feb248 100644 --- a/exercises/01.use-state/03.problem.re-render/README.mdx +++ b/exercises/01.use-state/03.problem.re-render/README.mdx @@ -1,6 +1,6 @@ # Re-render - + 👨‍💼 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 diff --git a/exercises/01.use-state/03.solution.re-render/README.mdx b/exercises/01.use-state/03.solution.re-render/README.mdx index 11b9ea6..5589801 100644 --- a/exercises/01.use-state/03.solution.re-render/README.mdx +++ b/exercises/01.use-state/03.solution.re-render/README.mdx @@ -1,6 +1,6 @@ # Re-render - + 👨‍💼 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 diff --git a/exercises/01.use-state/04.problem.preserve-state/README.mdx b/exercises/01.use-state/04.problem.preserve-state/README.mdx index 22304e8..8fb8a18 100644 --- a/exercises/01.use-state/04.problem.preserve-state/README.mdx +++ b/exercises/01.use-state/04.problem.preserve-state/README.mdx @@ -1,6 +1,6 @@ # Preserve State - + 👨‍💼 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 diff --git a/exercises/01.use-state/04.solution.preserve-state/README.mdx b/exercises/01.use-state/04.solution.preserve-state/README.mdx index 4e6a92d..43bcb2d 100644 --- a/exercises/01.use-state/04.solution.preserve-state/README.mdx +++ b/exercises/01.use-state/04.solution.preserve-state/README.mdx @@ -1,6 +1,6 @@ # Preserve State - + 👨‍💼 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. diff --git a/exercises/01.use-state/FINISHED.mdx b/exercises/01.use-state/FINISHED.mdx index 86218b4..d7bd3c2 100644 --- a/exercises/01.use-state/FINISHED.mdx +++ b/exercises/01.use-state/FINISHED.mdx @@ -1,6 +1,6 @@ # 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 diff --git a/exercises/01.use-state/README.mdx b/exercises/01.use-state/README.mdx index 411d7c6..036fdeb 100644 --- a/exercises/01.use-state/README.mdx +++ b/exercises/01.use-state/README.mdx @@ -1,6 +1,6 @@ # 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 diff --git a/exercises/02.multiple-hooks/01.problem.phase/README.mdx b/exercises/02.multiple-hooks/01.problem.phase/README.mdx index 3fbb01c..a9372c3 100644 --- a/exercises/02.multiple-hooks/01.problem.phase/README.mdx +++ b/exercises/02.multiple-hooks/01.problem.phase/README.mdx @@ -1,6 +1,6 @@ # Render Phase - + 🧝‍♂️ 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 diff --git a/exercises/02.multiple-hooks/01.solution.phase/README.mdx b/exercises/02.multiple-hooks/01.solution.phase/README.mdx index e5c14a9..790a420 100644 --- a/exercises/02.multiple-hooks/01.solution.phase/README.mdx +++ b/exercises/02.multiple-hooks/01.solution.phase/README.mdx @@ -1,6 +1,6 @@ # Render Phase - + 👨‍💼 Great! It's not quite working yet, now if we add `console.log({ count, enabled })` to the component, we'll get diff --git a/exercises/02.multiple-hooks/02.problem.hook-id/README.mdx b/exercises/02.multiple-hooks/02.problem.hook-id/README.mdx index b9aaffa..87c9574 100644 --- a/exercises/02.multiple-hooks/02.problem.hook-id/README.mdx +++ b/exercises/02.multiple-hooks/02.problem.hook-id/README.mdx @@ -1,6 +1,6 @@ # Hook ID - + 👨‍💼 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 diff --git a/exercises/02.multiple-hooks/02.solution.hook-id/README.mdx b/exercises/02.multiple-hooks/02.solution.hook-id/README.mdx index d4c769f..2506366 100644 --- a/exercises/02.multiple-hooks/02.solution.hook-id/README.mdx +++ b/exercises/02.multiple-hooks/02.solution.hook-id/README.mdx @@ -1,6 +1,6 @@ # Hook ID - + 👨‍💼 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 diff --git a/exercises/02.multiple-hooks/FINISHED.mdx b/exercises/02.multiple-hooks/FINISHED.mdx index 0da7098..d45fb2d 100644 --- a/exercises/02.multiple-hooks/FINISHED.mdx +++ b/exercises/02.multiple-hooks/FINISHED.mdx @@ -1,6 +1,6 @@ # 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 diff --git a/exercises/02.multiple-hooks/README.mdx b/exercises/02.multiple-hooks/README.mdx index 331bc4a..4025134 100644 --- a/exercises/02.multiple-hooks/README.mdx +++ b/exercises/02.multiple-hooks/README.mdx @@ -1,6 +1,6 @@ # 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 diff --git a/exercises/03.use-effect/01.problem.callback/README.mdx b/exercises/03.use-effect/01.problem.callback/README.mdx index 826759f..7a11e3c 100644 --- a/exercises/03.use-effect/01.problem.callback/README.mdx +++ b/exercises/03.use-effect/01.problem.callback/README.mdx @@ -1,6 +1,6 @@ # Callback - + 🧝‍♂️ I've added a `useEffect`, but it's not supported yet so the app's busted: diff --git a/exercises/03.use-effect/01.solution.callback/README.mdx b/exercises/03.use-effect/01.solution.callback/README.mdx index f00aa77..0fd89ff 100644 --- a/exercises/03.use-effect/01.solution.callback/README.mdx +++ b/exercises/03.use-effect/01.solution.callback/README.mdx @@ -1,5 +1,5 @@ # Callback - + 👨‍💼 Great job! Now, can you handle the dependency array? diff --git a/exercises/03.use-effect/02.problem.dependencies/README.mdx b/exercises/03.use-effect/02.problem.dependencies/README.mdx index 65e36ac..2366f77 100644 --- a/exercises/03.use-effect/02.problem.dependencies/README.mdx +++ b/exercises/03.use-effect/02.problem.dependencies/README.mdx @@ -1,6 +1,6 @@ # Dependencies - + 🧝‍♂️ I've updated the `useEffect`: diff --git a/exercises/03.use-effect/02.solution.dependencies/README.mdx b/exercises/03.use-effect/02.solution.dependencies/README.mdx index c356603..45b15be 100644 --- a/exercises/03.use-effect/02.solution.dependencies/README.mdx +++ b/exercises/03.use-effect/02.solution.dependencies/README.mdx @@ -1,5 +1,5 @@ # Dependencies - + 👨‍💼 Great work! Now the `useEffect` dependencies work. Well done 👏 diff --git a/exercises/03.use-effect/FINISHED.mdx b/exercises/03.use-effect/FINISHED.mdx index a60688c..95690f9 100644 --- a/exercises/03.use-effect/FINISHED.mdx +++ b/exercises/03.use-effect/FINISHED.mdx @@ -1,6 +1,6 @@ # useEffect - + 👨‍💼 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 diff --git a/exercises/03.use-effect/README.mdx b/exercises/03.use-effect/README.mdx index 2e3ffed..895d21c 100644 --- a/exercises/03.use-effect/README.mdx +++ b/exercises/03.use-effect/README.mdx @@ -1,6 +1,6 @@ # useEffect - + The `useEffect` hook has a simple API: diff --git a/exercises/FINISHED.mdx b/exercises/FINISHED.mdx index 7a11a7b..cb0b879 100644 --- a/exercises/FINISHED.mdx +++ b/exercises/FINISHED.mdx @@ -1,6 +1,6 @@ # Build React Hooks 🪝 - + Hooray! You're all done! 👏👏 diff --git a/exercises/README.mdx b/exercises/README.mdx index 6aec35f..bcf8949 100644 --- a/exercises/README.mdx +++ b/exercises/README.mdx @@ -1,6 +1,6 @@ # Build React Hooks 🪝 - + 👨‍💼 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!