Skip to content

Commit

Permalink
upgrade to React 19
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Dec 5, 2024
1 parent 9a5703a commit 73ddc1d
Show file tree
Hide file tree
Showing 15 changed files with 3,387 additions and 2,541 deletions.
2,458 changes: 1,521 additions & 937 deletions epicshop/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion epicshop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"dependencies": {
"@epic-web/workshop-app": "^5.9.0",
"@epic-web/workshop-utils": "^5.9.0",
"execa": "^9.1.0"
"execa": "^9.5.1"
}
}
2 changes: 1 addition & 1 deletion epicshop/update-deps.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
set -e

npx npm-check-updates --dep prod,dev --upgrade --root --reject react,react-dom
npx npm-check-updates --dep prod,dev --upgrade --root
cd epicshop && npx npm-check-updates --dep prod,dev --upgrade --root
cd ..
rm -rf node_modules package-lock.json ./epicshop/package-lock.json ./epicshop/node_modules ./exercises/**/node_modules
Expand Down
6 changes: 5 additions & 1 deletion exercises/02.side-effects/01.problem.effects/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ function App() {

return (
<div className="app">
<form action={() => setGlobalSearchParams({ query })}>
<form
action={() => {
setGlobalSearchParams({ query })
}}
>
<div>
<label htmlFor="searchInput">Search:</label>
<input
Expand Down
6 changes: 5 additions & 1 deletion exercises/02.side-effects/01.solution.effects/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ function App() {

return (
<div className="app">
<form action={() => setGlobalSearchParams({ query })}>
<form
action={() => {
setGlobalSearchParams({ query })
}}
>
<div>
<label htmlFor="searchInput">Search:</label>
<input
Expand Down
6 changes: 5 additions & 1 deletion exercises/02.side-effects/02.problem.cleanup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ function App() {

return (
<div className="app">
<form action={() => setGlobalSearchParams({ query })}>
<form
action={() => {
setGlobalSearchParams({ query })
}}
>
<div>
<label htmlFor="searchInput">Search:</label>
<input
Expand Down
6 changes: 5 additions & 1 deletion exercises/02.side-effects/02.solution.cleanup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ function App() {

return (
<div className="app">
<form action={() => setGlobalSearchParams({ query })}>
<form
action={() => {
setGlobalSearchParams({ query })
}}
>
<div>
<label htmlFor="searchInput">Search:</label>
<input
Expand Down
6 changes: 5 additions & 1 deletion exercises/03.lifting-state/01.problem.lift/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ function Form() {
}

return (
<form action={() => setGlobalSearchParams({ query })}>
<form
action={() => {
setGlobalSearchParams({ query })
}}
>
<div>
<label htmlFor="searchInput">Search:</label>
<input
Expand Down
6 changes: 5 additions & 1 deletion exercises/03.lifting-state/01.solution.lift/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ function Form({
}

return (
<form action={() => setGlobalSearchParams({ query })}>
<form
action={() => {
setGlobalSearchParams({ query })
}}
>
<div>
<label htmlFor="searchInput">Search:</label>
<input
Expand Down
6 changes: 5 additions & 1 deletion exercises/03.lifting-state/02.problem.lift-array/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ function Form({
}

return (
<form action={() => setGlobalSearchParams({ query })}>
<form
action={() => {
setGlobalSearchParams({ query })
}}
>
<div>
<label htmlFor="searchInput">Search:</label>
<input
Expand Down
6 changes: 5 additions & 1 deletion exercises/03.lifting-state/02.solution.lift-array/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ function Form({
}

return (
<form action={() => setGlobalSearchParams({ query })}>
<form
action={() => {
setGlobalSearchParams({ query })
}}
>
<div>
<label htmlFor="searchInput">Search:</label>
<input
Expand Down
6 changes: 5 additions & 1 deletion exercises/03.lifting-state/03.problem.colocate/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ function Form({
}

return (
<form action={() => setGlobalSearchParams({ query })}>
<form
action={() => {
setGlobalSearchParams({ query })
}}
>
<div>
<label htmlFor="searchInput">Search:</label>
<input
Expand Down
6 changes: 5 additions & 1 deletion exercises/03.lifting-state/03.solution.colocate/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ function Form({
}

return (
<form action={() => setGlobalSearchParams({ query })}>
<form
action={() => {
setGlobalSearchParams({ query })
}}
>
<div>
<label htmlFor="searchInput">Search:</label>
<input
Expand Down
Loading

0 comments on commit 73ddc1d

Please sign in to comment.