From 6f5ede761c188e37e08a630826559e0bb30e4b2e Mon Sep 17 00:00:00 2001 From: "Kent C. Dodds" Date: Mon, 13 May 2024 09:20:08 -0600 Subject: [PATCH] give all exercises a name --- .../{01.problem => 01.problem.context}/README.mdx | 7 ------- .../{01.problem => 01.problem.context}/app.tsx | 0 .../{01.problem => 01.problem.context}/index.css | 0 .../{01.problem => 01.problem.context}/index.tsx | 0 .../{01.problem => 01.problem.context}/toggle.tsx | 0 .../{01.solution => 01.solution.context}/README.mdx | 0 .../{01.solution => 01.solution.context}/app.tsx | 0 .../{01.solution => 01.solution.context}/index.css | 0 .../{01.solution => 01.solution.context}/index.tsx | 0 .../{01.solution => 01.solution.context}/toggle.test.tsx | 0 .../{01.solution => 01.solution.context}/toggle.tsx | 0 .../{01.problem => 01.problem.reducer}/README.mdx | 0 .../{01.problem => 01.problem.reducer}/app.tsx | 0 .../{01.problem => 01.problem.reducer}/index.css | 0 .../{01.problem => 01.problem.reducer}/index.tsx | 0 .../{01.problem => 01.problem.reducer}/toggle.tsx | 0 .../{01.solution => 01.solution.reducer}/README.mdx | 0 .../{01.solution => 01.solution.reducer}/app.tsx | 0 .../click-limit.test.tsx | 0 .../{01.solution => 01.solution.reducer}/index.css | 0 .../{01.solution => 01.solution.reducer}/index.tsx | 0 .../{01.solution => 01.solution.reducer}/toggle.test.tsx | 0 .../{01.solution => 01.solution.reducer}/toggle.tsx | 0 .../{01.problem => 01.problem.control}/README.mdx | 0 .../{01.problem => 01.problem.control}/app.tsx | 0 .../{01.problem => 01.problem.control}/index.css | 0 .../{01.problem => 01.problem.control}/index.tsx | 0 .../{01.problem => 01.problem.control}/toggle.tsx | 0 .../{01.solution => 01.solution.control}/README.mdx | 0 .../{01.solution => 01.solution.control}/app.tsx | 0 .../{01.solution => 01.solution.control}/index.css | 0 .../{01.solution => 01.solution.control}/index.tsx | 0 .../synchronized.test.tsx | 0 .../{01.solution => 01.solution.control}/toggle.tsx | 0 .../uncontrolled.test.tsx | 0 35 files changed, 7 deletions(-) rename exercises/03.compound-components/{01.problem => 01.problem.context}/README.mdx (82%) rename exercises/03.compound-components/{01.problem => 01.problem.context}/app.tsx (100%) rename exercises/03.compound-components/{01.problem => 01.problem.context}/index.css (100%) rename exercises/03.compound-components/{01.problem => 01.problem.context}/index.tsx (100%) rename exercises/03.compound-components/{01.problem => 01.problem.context}/toggle.tsx (100%) rename exercises/03.compound-components/{01.solution => 01.solution.context}/README.mdx (100%) rename exercises/03.compound-components/{01.solution => 01.solution.context}/app.tsx (100%) rename exercises/03.compound-components/{01.solution => 01.solution.context}/index.css (100%) rename exercises/03.compound-components/{01.solution => 01.solution.context}/index.tsx (100%) rename exercises/03.compound-components/{01.solution => 01.solution.context}/toggle.test.tsx (100%) rename exercises/03.compound-components/{01.solution => 01.solution.context}/toggle.tsx (100%) rename exercises/07.state-reducer/{01.problem => 01.problem.reducer}/README.mdx (100%) rename exercises/07.state-reducer/{01.problem => 01.problem.reducer}/app.tsx (100%) rename exercises/07.state-reducer/{01.problem => 01.problem.reducer}/index.css (100%) rename exercises/07.state-reducer/{01.problem => 01.problem.reducer}/index.tsx (100%) rename exercises/07.state-reducer/{01.problem => 01.problem.reducer}/toggle.tsx (100%) rename exercises/07.state-reducer/{01.solution => 01.solution.reducer}/README.mdx (100%) rename exercises/07.state-reducer/{01.solution => 01.solution.reducer}/app.tsx (100%) rename exercises/07.state-reducer/{01.solution => 01.solution.reducer}/click-limit.test.tsx (100%) rename exercises/07.state-reducer/{01.solution => 01.solution.reducer}/index.css (100%) rename exercises/07.state-reducer/{01.solution => 01.solution.reducer}/index.tsx (100%) rename exercises/07.state-reducer/{01.solution => 01.solution.reducer}/toggle.test.tsx (100%) rename exercises/07.state-reducer/{01.solution => 01.solution.reducer}/toggle.tsx (100%) rename exercises/08.control-props/{01.problem => 01.problem.control}/README.mdx (100%) rename exercises/08.control-props/{01.problem => 01.problem.control}/app.tsx (100%) rename exercises/08.control-props/{01.problem => 01.problem.control}/index.css (100%) rename exercises/08.control-props/{01.problem => 01.problem.control}/index.tsx (100%) rename exercises/08.control-props/{01.problem => 01.problem.control}/toggle.tsx (100%) rename exercises/08.control-props/{01.solution => 01.solution.control}/README.mdx (100%) rename exercises/08.control-props/{01.solution => 01.solution.control}/app.tsx (100%) rename exercises/08.control-props/{01.solution => 01.solution.control}/index.css (100%) rename exercises/08.control-props/{01.solution => 01.solution.control}/index.tsx (100%) rename exercises/08.control-props/{01.solution => 01.solution.control}/synchronized.test.tsx (100%) rename exercises/08.control-props/{01.solution => 01.solution.control}/toggle.tsx (100%) rename exercises/08.control-props/{01.solution => 01.solution.control}/uncontrolled.test.tsx (100%) diff --git a/exercises/03.compound-components/01.problem/README.mdx b/exercises/03.compound-components/01.problem.context/README.mdx similarity index 82% rename from exercises/03.compound-components/01.problem/README.mdx rename to exercises/03.compound-components/01.problem.context/README.mdx index 85c1c07b..1621b48d 100644 --- a/exercises/03.compound-components/01.problem/README.mdx +++ b/exercises/03.compound-components/01.problem.context/README.mdx @@ -21,13 +21,6 @@ components. So in this exercise, we'll solve that problem by using the 📜 [React Context API](https://react.dev/reference/react/use#reading-context-with-use)! - - Technically, the [`use`](https://react.dev/reference/react/use) hook is in the - canary release of React which is not yet released, but [will be - soon](https://react.dev/blog/2024/02/15/react-labs-what-we-have-been-working-on-february-2024). - We'll be using it in this workshop series to keep you ahead of the curve. - - What we want to do in this exercise is allow users of our component to render something when the toggle button is on and to render something else when that toggle button is off without troubling them with managing the state that's diff --git a/exercises/03.compound-components/01.problem/app.tsx b/exercises/03.compound-components/01.problem.context/app.tsx similarity index 100% rename from exercises/03.compound-components/01.problem/app.tsx rename to exercises/03.compound-components/01.problem.context/app.tsx diff --git a/exercises/03.compound-components/01.problem/index.css b/exercises/03.compound-components/01.problem.context/index.css similarity index 100% rename from exercises/03.compound-components/01.problem/index.css rename to exercises/03.compound-components/01.problem.context/index.css diff --git a/exercises/03.compound-components/01.problem/index.tsx b/exercises/03.compound-components/01.problem.context/index.tsx similarity index 100% rename from exercises/03.compound-components/01.problem/index.tsx rename to exercises/03.compound-components/01.problem.context/index.tsx diff --git a/exercises/03.compound-components/01.problem/toggle.tsx b/exercises/03.compound-components/01.problem.context/toggle.tsx similarity index 100% rename from exercises/03.compound-components/01.problem/toggle.tsx rename to exercises/03.compound-components/01.problem.context/toggle.tsx diff --git a/exercises/03.compound-components/01.solution/README.mdx b/exercises/03.compound-components/01.solution.context/README.mdx similarity index 100% rename from exercises/03.compound-components/01.solution/README.mdx rename to exercises/03.compound-components/01.solution.context/README.mdx diff --git a/exercises/03.compound-components/01.solution/app.tsx b/exercises/03.compound-components/01.solution.context/app.tsx similarity index 100% rename from exercises/03.compound-components/01.solution/app.tsx rename to exercises/03.compound-components/01.solution.context/app.tsx diff --git a/exercises/03.compound-components/01.solution/index.css b/exercises/03.compound-components/01.solution.context/index.css similarity index 100% rename from exercises/03.compound-components/01.solution/index.css rename to exercises/03.compound-components/01.solution.context/index.css diff --git a/exercises/03.compound-components/01.solution/index.tsx b/exercises/03.compound-components/01.solution.context/index.tsx similarity index 100% rename from exercises/03.compound-components/01.solution/index.tsx rename to exercises/03.compound-components/01.solution.context/index.tsx diff --git a/exercises/03.compound-components/01.solution/toggle.test.tsx b/exercises/03.compound-components/01.solution.context/toggle.test.tsx similarity index 100% rename from exercises/03.compound-components/01.solution/toggle.test.tsx rename to exercises/03.compound-components/01.solution.context/toggle.test.tsx diff --git a/exercises/03.compound-components/01.solution/toggle.tsx b/exercises/03.compound-components/01.solution.context/toggle.tsx similarity index 100% rename from exercises/03.compound-components/01.solution/toggle.tsx rename to exercises/03.compound-components/01.solution.context/toggle.tsx diff --git a/exercises/07.state-reducer/01.problem/README.mdx b/exercises/07.state-reducer/01.problem.reducer/README.mdx similarity index 100% rename from exercises/07.state-reducer/01.problem/README.mdx rename to exercises/07.state-reducer/01.problem.reducer/README.mdx diff --git a/exercises/07.state-reducer/01.problem/app.tsx b/exercises/07.state-reducer/01.problem.reducer/app.tsx similarity index 100% rename from exercises/07.state-reducer/01.problem/app.tsx rename to exercises/07.state-reducer/01.problem.reducer/app.tsx diff --git a/exercises/07.state-reducer/01.problem/index.css b/exercises/07.state-reducer/01.problem.reducer/index.css similarity index 100% rename from exercises/07.state-reducer/01.problem/index.css rename to exercises/07.state-reducer/01.problem.reducer/index.css diff --git a/exercises/07.state-reducer/01.problem/index.tsx b/exercises/07.state-reducer/01.problem.reducer/index.tsx similarity index 100% rename from exercises/07.state-reducer/01.problem/index.tsx rename to exercises/07.state-reducer/01.problem.reducer/index.tsx diff --git a/exercises/07.state-reducer/01.problem/toggle.tsx b/exercises/07.state-reducer/01.problem.reducer/toggle.tsx similarity index 100% rename from exercises/07.state-reducer/01.problem/toggle.tsx rename to exercises/07.state-reducer/01.problem.reducer/toggle.tsx diff --git a/exercises/07.state-reducer/01.solution/README.mdx b/exercises/07.state-reducer/01.solution.reducer/README.mdx similarity index 100% rename from exercises/07.state-reducer/01.solution/README.mdx rename to exercises/07.state-reducer/01.solution.reducer/README.mdx diff --git a/exercises/07.state-reducer/01.solution/app.tsx b/exercises/07.state-reducer/01.solution.reducer/app.tsx similarity index 100% rename from exercises/07.state-reducer/01.solution/app.tsx rename to exercises/07.state-reducer/01.solution.reducer/app.tsx diff --git a/exercises/07.state-reducer/01.solution/click-limit.test.tsx b/exercises/07.state-reducer/01.solution.reducer/click-limit.test.tsx similarity index 100% rename from exercises/07.state-reducer/01.solution/click-limit.test.tsx rename to exercises/07.state-reducer/01.solution.reducer/click-limit.test.tsx diff --git a/exercises/07.state-reducer/01.solution/index.css b/exercises/07.state-reducer/01.solution.reducer/index.css similarity index 100% rename from exercises/07.state-reducer/01.solution/index.css rename to exercises/07.state-reducer/01.solution.reducer/index.css diff --git a/exercises/07.state-reducer/01.solution/index.tsx b/exercises/07.state-reducer/01.solution.reducer/index.tsx similarity index 100% rename from exercises/07.state-reducer/01.solution/index.tsx rename to exercises/07.state-reducer/01.solution.reducer/index.tsx diff --git a/exercises/07.state-reducer/01.solution/toggle.test.tsx b/exercises/07.state-reducer/01.solution.reducer/toggle.test.tsx similarity index 100% rename from exercises/07.state-reducer/01.solution/toggle.test.tsx rename to exercises/07.state-reducer/01.solution.reducer/toggle.test.tsx diff --git a/exercises/07.state-reducer/01.solution/toggle.tsx b/exercises/07.state-reducer/01.solution.reducer/toggle.tsx similarity index 100% rename from exercises/07.state-reducer/01.solution/toggle.tsx rename to exercises/07.state-reducer/01.solution.reducer/toggle.tsx diff --git a/exercises/08.control-props/01.problem/README.mdx b/exercises/08.control-props/01.problem.control/README.mdx similarity index 100% rename from exercises/08.control-props/01.problem/README.mdx rename to exercises/08.control-props/01.problem.control/README.mdx diff --git a/exercises/08.control-props/01.problem/app.tsx b/exercises/08.control-props/01.problem.control/app.tsx similarity index 100% rename from exercises/08.control-props/01.problem/app.tsx rename to exercises/08.control-props/01.problem.control/app.tsx diff --git a/exercises/08.control-props/01.problem/index.css b/exercises/08.control-props/01.problem.control/index.css similarity index 100% rename from exercises/08.control-props/01.problem/index.css rename to exercises/08.control-props/01.problem.control/index.css diff --git a/exercises/08.control-props/01.problem/index.tsx b/exercises/08.control-props/01.problem.control/index.tsx similarity index 100% rename from exercises/08.control-props/01.problem/index.tsx rename to exercises/08.control-props/01.problem.control/index.tsx diff --git a/exercises/08.control-props/01.problem/toggle.tsx b/exercises/08.control-props/01.problem.control/toggle.tsx similarity index 100% rename from exercises/08.control-props/01.problem/toggle.tsx rename to exercises/08.control-props/01.problem.control/toggle.tsx diff --git a/exercises/08.control-props/01.solution/README.mdx b/exercises/08.control-props/01.solution.control/README.mdx similarity index 100% rename from exercises/08.control-props/01.solution/README.mdx rename to exercises/08.control-props/01.solution.control/README.mdx diff --git a/exercises/08.control-props/01.solution/app.tsx b/exercises/08.control-props/01.solution.control/app.tsx similarity index 100% rename from exercises/08.control-props/01.solution/app.tsx rename to exercises/08.control-props/01.solution.control/app.tsx diff --git a/exercises/08.control-props/01.solution/index.css b/exercises/08.control-props/01.solution.control/index.css similarity index 100% rename from exercises/08.control-props/01.solution/index.css rename to exercises/08.control-props/01.solution.control/index.css diff --git a/exercises/08.control-props/01.solution/index.tsx b/exercises/08.control-props/01.solution.control/index.tsx similarity index 100% rename from exercises/08.control-props/01.solution/index.tsx rename to exercises/08.control-props/01.solution.control/index.tsx diff --git a/exercises/08.control-props/01.solution/synchronized.test.tsx b/exercises/08.control-props/01.solution.control/synchronized.test.tsx similarity index 100% rename from exercises/08.control-props/01.solution/synchronized.test.tsx rename to exercises/08.control-props/01.solution.control/synchronized.test.tsx diff --git a/exercises/08.control-props/01.solution/toggle.tsx b/exercises/08.control-props/01.solution.control/toggle.tsx similarity index 100% rename from exercises/08.control-props/01.solution/toggle.tsx rename to exercises/08.control-props/01.solution.control/toggle.tsx diff --git a/exercises/08.control-props/01.solution/uncontrolled.test.tsx b/exercises/08.control-props/01.solution.control/uncontrolled.test.tsx similarity index 100% rename from exercises/08.control-props/01.solution/uncontrolled.test.tsx rename to exercises/08.control-props/01.solution.control/uncontrolled.test.tsx