Skip to content

Commit 73ddc1d

Browse files
committed
upgrade to React 19
1 parent 9a5703a commit 73ddc1d

File tree

15 files changed

+3387
-2541
lines changed

15 files changed

+3387
-2541
lines changed

epicshop/package-lock.json

+1,521-937
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

epicshop/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
"dependencies": {
88
"@epic-web/workshop-app": "^5.9.0",
99
"@epic-web/workshop-utils": "^5.9.0",
10-
"execa": "^9.1.0"
10+
"execa": "^9.5.1"
1111
}
1212
}

epicshop/update-deps.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
set -e
22

3-
npx npm-check-updates --dep prod,dev --upgrade --root --reject react,react-dom
3+
npx npm-check-updates --dep prod,dev --upgrade --root
44
cd epicshop && npx npm-check-updates --dep prod,dev --upgrade --root
55
cd ..
66
rm -rf node_modules package-lock.json ./epicshop/package-lock.json ./epicshop/node_modules ./exercises/**/node_modules

exercises/02.side-effects/01.problem.effects/index.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ function App() {
3030

3131
return (
3232
<div className="app">
33-
<form action={() => setGlobalSearchParams({ query })}>
33+
<form
34+
action={() => {
35+
setGlobalSearchParams({ query })
36+
}}
37+
>
3438
<div>
3539
<label htmlFor="searchInput">Search:</label>
3640
<input

exercises/02.side-effects/01.solution.effects/index.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ function App() {
2828

2929
return (
3030
<div className="app">
31-
<form action={() => setGlobalSearchParams({ query })}>
31+
<form
32+
action={() => {
33+
setGlobalSearchParams({ query })
34+
}}
35+
>
3236
<div>
3337
<label htmlFor="searchInput">Search:</label>
3438
<input

exercises/02.side-effects/02.problem.cleanup/index.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ function App() {
4242

4343
return (
4444
<div className="app">
45-
<form action={() => setGlobalSearchParams({ query })}>
45+
<form
46+
action={() => {
47+
setGlobalSearchParams({ query })
48+
}}
49+
>
4650
<div>
4751
<label htmlFor="searchInput">Search:</label>
4852
<input

exercises/02.side-effects/02.solution.cleanup/index.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ function App() {
4141

4242
return (
4343
<div className="app">
44-
<form action={() => setGlobalSearchParams({ query })}>
44+
<form
45+
action={() => {
46+
setGlobalSearchParams({ query })
47+
}}
48+
>
4549
<div>
4650
<label htmlFor="searchInput">Search:</label>
4751
<input

exercises/03.lifting-state/01.problem.lift/index.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ function Form() {
5050
}
5151

5252
return (
53-
<form action={() => setGlobalSearchParams({ query })}>
53+
<form
54+
action={() => {
55+
setGlobalSearchParams({ query })
56+
}}
57+
>
5458
<div>
5559
<label htmlFor="searchInput">Search:</label>
5660
<input

exercises/03.lifting-state/01.solution.lift/index.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ function Form({
5050
}
5151

5252
return (
53-
<form action={() => setGlobalSearchParams({ query })}>
53+
<form
54+
action={() => {
55+
setGlobalSearchParams({ query })
56+
}}
57+
>
5458
<div>
5559
<label htmlFor="searchInput">Search:</label>
5660
<input

exercises/03.lifting-state/02.problem.lift-array/index.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ function Form({
5050
}
5151

5252
return (
53-
<form action={() => setGlobalSearchParams({ query })}>
53+
<form
54+
action={() => {
55+
setGlobalSearchParams({ query })
56+
}}
57+
>
5458
<div>
5559
<label htmlFor="searchInput">Search:</label>
5660
<input

exercises/03.lifting-state/02.solution.lift-array/index.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ function Form({
5050
}
5151

5252
return (
53-
<form action={() => setGlobalSearchParams({ query })}>
53+
<form
54+
action={() => {
55+
setGlobalSearchParams({ query })
56+
}}
57+
>
5458
<div>
5559
<label htmlFor="searchInput">Search:</label>
5660
<input

exercises/03.lifting-state/03.problem.colocate/index.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ function Form({
5050
}
5151

5252
return (
53-
<form action={() => setGlobalSearchParams({ query })}>
53+
<form
54+
action={() => {
55+
setGlobalSearchParams({ query })
56+
}}
57+
>
5458
<div>
5559
<label htmlFor="searchInput">Search:</label>
5660
<input

exercises/03.lifting-state/03.solution.colocate/index.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ function Form({
5050
}
5151

5252
return (
53-
<form action={() => setGlobalSearchParams({ query })}>
53+
<form
54+
action={() => {
55+
setGlobalSearchParams({ query })
56+
}}
57+
>
5458
<div>
5559
<label htmlFor="searchInput">Search:</label>
5660
<input

0 commit comments

Comments
 (0)