Skip to content

Commit

Permalink
some progress
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Mar 31, 2024
1 parent c448088 commit dfe6244
Show file tree
Hide file tree
Showing 98 changed files with 2,762 additions and 89 deletions.
2 changes: 1 addition & 1 deletion exercises/01.exercises/01.problem.ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"get-port": "^7.1.0",
"react": "0.0.0-experimental-2b036d3f1-20240327",
"react-dom": "0.0.0-experimental-2b036d3f1-20240327",
"react-error-boundary": "npm:@kentcdodds/temp-react-error-boundary@4.0.13",
"react-error-boundary": "^4.0.13",
"react-server-dom-esm": "npm:@kentcdodds/[email protected]"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion exercises/01.exercises/01.solution.ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"get-port": "^7.1.0",
"react": "0.0.0-experimental-2b036d3f1-20240327",
"react-dom": "0.0.0-experimental-2b036d3f1-20240327",
"react-error-boundary": "npm:@kentcdodds/temp-react-error-boundary@4.0.13",
"react-error-boundary": "^4.0.13",
"react-server-dom-esm": "npm:@kentcdodds/[email protected]"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"get-port": "^7.1.0",
"react": "0.0.0-experimental-2b036d3f1-20240327",
"react-dom": "0.0.0-experimental-2b036d3f1-20240327",
"react-error-boundary": "npm:@kentcdodds/temp-react-error-boundary@4.0.13",
"react-error-boundary": "^4.0.13",
"react-server-dom-esm": "npm:@kentcdodds/[email protected]"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"get-port": "^7.1.0",
"react": "0.0.0-experimental-2b036d3f1-20240327",
"react-dom": "0.0.0-experimental-2b036d3f1-20240327",
"react-error-boundary": "npm:@kentcdodds/temp-react-error-boundary@4.0.13",
"react-error-boundary": "^4.0.13",
"react-server-dom-esm": "npm:@kentcdodds/[email protected]"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion exercises/01.exercises/03.problem.url/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"get-port": "^7.1.0",
"react": "0.0.0-experimental-2b036d3f1-20240327",
"react-dom": "0.0.0-experimental-2b036d3f1-20240327",
"react-error-boundary": "npm:@kentcdodds/temp-react-error-boundary@4.0.13",
"react-error-boundary": "^4.0.13",
"react-server-dom-esm": "npm:@kentcdodds/[email protected]"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion exercises/01.exercises/03.solution.url/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"get-port": "^7.1.0",
"react": "0.0.0-experimental-2b036d3f1-20240327",
"react-dom": "0.0.0-experimental-2b036d3f1-20240327",
"react-error-boundary": "npm:@kentcdodds/temp-react-error-boundary@4.0.13",
"react-error-boundary": "^4.0.13",
"react-server-dom-esm": "npm:@kentcdodds/[email protected]"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"get-port": "^7.1.0",
"react": "0.0.0-experimental-2b036d3f1-20240327",
"react-dom": "0.0.0-experimental-2b036d3f1-20240327",
"react-error-boundary": "npm:@kentcdodds/temp-react-error-boundary@4.0.13",
"react-error-boundary": "^4.0.13",
"react-server-dom-esm": "npm:@kentcdodds/[email protected]"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"get-port": "^7.1.0",
"react": "0.0.0-experimental-2b036d3f1-20240327",
"react-dom": "0.0.0-experimental-2b036d3f1-20240327",
"react-error-boundary": "npm:@kentcdodds/temp-react-error-boundary@4.0.13",
"react-error-boundary": "^4.0.13",
"react-server-dom-esm": "npm:@kentcdodds/[email protected]"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion exercises/01.exercises/05.problem.bootstrap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"get-port": "^7.1.0",
"react": "0.0.0-experimental-2b036d3f1-20240327",
"react-dom": "0.0.0-experimental-2b036d3f1-20240327",
"react-error-boundary": "npm:@kentcdodds/temp-react-error-boundary@4.0.13",
"react-error-boundary": "^4.0.13",
"react-server-dom-esm": "npm:@kentcdodds/[email protected]"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion exercises/01.exercises/05.solution.bootstrap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"get-port": "^7.1.0",
"react": "0.0.0-experimental-2b036d3f1-20240327",
"react-dom": "0.0.0-experimental-2b036d3f1-20240327",
"react-error-boundary": "npm:@kentcdodds/temp-react-error-boundary@4.0.13",
"react-error-boundary": "^4.0.13",
"react-server-dom-esm": "npm:@kentcdodds/[email protected]"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion exercises/01.exercises/06.problem.import-map/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"get-port": "^7.1.0",
"react": "0.0.0-experimental-2b036d3f1-20240327",
"react-dom": "0.0.0-experimental-2b036d3f1-20240327",
"react-error-boundary": "npm:@kentcdodds/temp-react-error-boundary@4.0.13",
"react-error-boundary": "^4.0.13",
"react-server-dom-esm": "npm:@kentcdodds/[email protected]"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion exercises/01.exercises/06.problem.import-map/server/ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ app.get('/:shipId?', async function (req, res) {
// 'react-dom/':
// 'https://esm.sh/[email protected]&pin=v126&dev/',
// 'react-error-boundary':
// 'https://esm.sh/@kentcdodds/temp-[email protected]?pin=126&dev',
// 'https://esm.sh/[email protected]?pin=126&dev',
// 'react-server-dom-esm/client': '/js/react-server-dom-esm/client',
// },
// },
Expand Down
2 changes: 1 addition & 1 deletion exercises/01.exercises/06.solution.import-map/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"get-port": "^7.1.0",
"react": "0.0.0-experimental-2b036d3f1-20240327",
"react-dom": "0.0.0-experimental-2b036d3f1-20240327",
"react-error-boundary": "npm:@kentcdodds/temp-react-error-boundary@4.0.13",
"react-error-boundary": "^4.0.13",
"react-server-dom-esm": "npm:@kentcdodds/[email protected]"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ app.get('/:shipId?', async function (req, res) {
'react-dom/':
'https://esm.sh/[email protected]&pin=v126&dev/',
'react-error-boundary':
'https://esm.sh/@kentcdodds/temp-[email protected]?pin=126&dev',
'https://esm.sh/[email protected]?pin=126&dev',
'react-server-dom-esm/client': '/js/react-server-dom-esm/client',
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"get-port": "^7.1.0",
"react": "0.0.0-experimental-2b036d3f1-20240327",
"react-dom": "0.0.0-experimental-2b036d3f1-20240327",
"react-error-boundary": "npm:@kentcdodds/temp-react-error-boundary@4.0.13",
"react-error-boundary": "^4.0.13",
"react-server-dom-esm": "npm:@kentcdodds/[email protected]"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ app.get('/:shipId?', async function (req, res) {
'react-dom/':
'https://esm.sh/[email protected]&pin=v126&dev/',
'react-error-boundary':
'https://esm.sh/@kentcdodds/temp-[email protected]?pin=126&dev',
'https://esm.sh/[email protected]?pin=126&dev',
'react-server-dom-esm/client': '/js/react-server-dom-esm/client',
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"get-port": "^7.1.0",
"react": "0.0.0-experimental-2b036d3f1-20240327",
"react-dom": "0.0.0-experimental-2b036d3f1-20240327",
"react-error-boundary": "npm:@kentcdodds/temp-react-error-boundary@4.0.13",
"react-error-boundary": "^4.0.13",
"react-server-dom-esm": "npm:@kentcdodds/[email protected]"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ app.get('/:shipId?', async function (req, res) {
'react-dom/':
'https://esm.sh/[email protected]&pin=v126&dev/',
'react-error-boundary':
'https://esm.sh/@kentcdodds/temp-[email protected]?pin=126&dev',
'https://esm.sh/[email protected]?pin=126&dev',
'react-server-dom-esm/client': '/js/react-server-dom-esm/client',
},
},
Expand Down
2 changes: 1 addition & 1 deletion exercises/01.exercises/08.problem.hydrate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"get-port": "^7.1.0",
"react": "0.0.0-experimental-2b036d3f1-20240327",
"react-dom": "0.0.0-experimental-2b036d3f1-20240327",
"react-error-boundary": "npm:@kentcdodds/temp-react-error-boundary@4.0.13",
"react-error-boundary": "^4.0.13",
"react-server-dom-esm": "npm:@kentcdodds/[email protected]"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion exercises/01.exercises/08.problem.hydrate/server/ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ app.get('/:shipId?', async function (req, res) {
'react-dom/':
'https://esm.sh/[email protected]&pin=v126&dev/',
'react-error-boundary':
'https://esm.sh/@kentcdodds/temp-[email protected]?pin=126&dev',
'https://esm.sh/[email protected]?pin=126&dev',
'react-server-dom-esm/client': '/js/react-server-dom-esm/client',
},
},
Expand Down
2 changes: 1 addition & 1 deletion exercises/01.exercises/08.solution.hydrate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"get-port": "^7.1.0",
"react": "0.0.0-experimental-2b036d3f1-20240327",
"react-dom": "0.0.0-experimental-2b036d3f1-20240327",
"react-error-boundary": "npm:@kentcdodds/temp-react-error-boundary@4.0.13",
"react-error-boundary": "^4.0.13",
"react-server-dom-esm": "npm:@kentcdodds/[email protected]"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion exercises/01.exercises/08.solution.hydrate/server/ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ app.all('/:shipId?', async function (req, res) {
'react-dom/':
'https://esm.sh/[email protected]&pin=v126&dev/',
'react-error-boundary':
'https://esm.sh/@kentcdodds/temp-[email protected]?pin=126&dev',
'https://esm.sh/[email protected]?pin=126&dev',
'react-server-dom-esm/client': '/js/react-server-dom-esm/client',
},
},
Expand Down
2 changes: 1 addition & 1 deletion exercises/01.exercises/09.problem.routing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"get-port": "^7.1.0",
"react": "0.0.0-experimental-2b036d3f1-20240327",
"react-dom": "0.0.0-experimental-2b036d3f1-20240327",
"react-error-boundary": "npm:@kentcdodds/temp-react-error-boundary@4.0.13",
"react-error-boundary": "^4.0.13",
"react-server-dom-esm": "npm:@kentcdodds/[email protected]"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion exercises/01.exercises/09.problem.routing/server/ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ app.all('/:shipId?', async function (req, res) {
'react-dom/':
'https://esm.sh/[email protected]&pin=v126&dev/',
'react-error-boundary':
'https://esm.sh/@kentcdodds/temp-[email protected]?pin=126&dev',
'https://esm.sh/[email protected]?pin=126&dev',
'react-server-dom-esm/client': '/js/react-server-dom-esm/client',
},
},
Expand Down
2 changes: 1 addition & 1 deletion exercises/01.exercises/09.solution.routing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"get-port": "^7.1.0",
"react": "0.0.0-experimental-2b036d3f1-20240327",
"react-dom": "0.0.0-experimental-2b036d3f1-20240327",
"react-error-boundary": "npm:@kentcdodds/temp-react-error-boundary@4.0.13",
"react-error-boundary": "^4.0.13",
"react-server-dom-esm": "npm:@kentcdodds/[email protected]"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion exercises/01.exercises/09.solution.routing/server/ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ app.all('/:shipId?', async function (req, res) {
'react-dom/':
'https://esm.sh/[email protected]&pin=v126&dev/',
'react-error-boundary':
'https://esm.sh/@kentcdodds/temp-[email protected]?pin=126&dev',
'https://esm.sh/[email protected]?pin=126&dev',
'react-server-dom-esm/client': '/js/react-server-dom-esm/client',
},
},
Expand Down
2 changes: 1 addition & 1 deletion exercises/01.exercises/10.problem.actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"get-port": "^7.1.0",
"react": "0.0.0-experimental-2b036d3f1-20240327",
"react-dom": "0.0.0-experimental-2b036d3f1-20240327",
"react-error-boundary": "npm:@kentcdodds/temp-react-error-boundary@4.0.13",
"react-error-boundary": "^4.0.13",
"react-server-dom-esm": "npm:@kentcdodds/[email protected]"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion exercises/01.exercises/10.problem.actions/server/ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ app.all('/:shipId?', async function (req, res) {
'react-dom/':
'https://esm.sh/[email protected]&pin=v126&dev/',
'react-error-boundary':
'https://esm.sh/@kentcdodds/temp-[email protected]?pin=126&dev',
'https://esm.sh/[email protected]?pin=126&dev',
'react-server-dom-esm/client': '/js/react-server-dom-esm/client',
},
},
Expand Down
2 changes: 1 addition & 1 deletion exercises/01.exercises/10.solution.actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"get-port": "^7.1.0",
"react": "0.0.0-experimental-2b036d3f1-20240327",
"react-dom": "0.0.0-experimental-2b036d3f1-20240327",
"react-error-boundary": "npm:@kentcdodds/temp-react-error-boundary@4.0.13",
"react-error-boundary": "^4.0.13",
"react-server-dom-esm": "npm:@kentcdodds/[email protected]"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion exercises/01.exercises/10.solution.actions/server/ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ app.all('/:shipId?', async function (req, res) {
'react-dom/':
'https://esm.sh/[email protected]&pin=v126&dev/',
'react-error-boundary':
'https://esm.sh/@kentcdodds/temp-[email protected]?pin=126&dev',
'https://esm.sh/[email protected]?pin=126&dev',
'react-server-dom-esm/client': '/js/react-server-dom-esm/client',
},
},
Expand Down
2 changes: 1 addition & 1 deletion exercises/02.no-ssr/01.solution.start/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"express": "^4.19.1",
"react": "0.0.0-experimental-2b036d3f1-20240327",
"react-dom": "0.0.0-experimental-2b036d3f1-20240327",
"react-error-boundary": "npm:@kentcdodds/temp-react-error-boundary@4.0.13",
"react-error-boundary": "^4.0.13",
"react-server-dom-esm": "npm:@kentcdodds/[email protected]"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion exercises/02.no-ssr/01.solution.start/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"react": "https://esm.sh/[email protected]?pin=v126&dev",
"react-dom": "https://esm.sh/[email protected]?pin=v126&dev",
"react-dom/": "https://esm.sh/[email protected]&pin=v126&dev/",
"react-error-boundary": "https://esm.sh/@kentcdodds/temp-[email protected]?pin=126&dev",
"react-error-boundary": "https://esm.sh/[email protected]?pin=126&dev",
"react-server-dom-esm/client": "/js/react-server-dom-esm/client"
}
}
Expand Down
2 changes: 1 addition & 1 deletion exercises/02.no-ssr/02.solution.rsc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"express": "^4.19.1",
"react": "0.0.0-experimental-2b036d3f1-20240327",
"react-dom": "0.0.0-experimental-2b036d3f1-20240327",
"react-error-boundary": "npm:@kentcdodds/temp-react-error-boundary@4.0.13",
"react-error-boundary": "^4.0.13",
"react-server-dom-esm": "npm:@kentcdodds/[email protected]"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion exercises/02.no-ssr/02.solution.rsc/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"react": "https://esm.sh/[email protected]?pin=v126&dev",
"react-dom": "https://esm.sh/[email protected]?pin=v126&dev",
"react-dom/": "https://esm.sh/[email protected]&pin=v126&dev/",
"react-error-boundary": "https://esm.sh/@kentcdodds/temp-[email protected]?pin=126&dev",
"react-error-boundary": "https://esm.sh/[email protected]?pin=126&dev",
"react-server-dom-esm/client": "/js/react-server-dom-esm/client"
}
}
Expand Down
2 changes: 1 addition & 1 deletion exercises/02.no-ssr/03.solution.streaming/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"express": "^4.19.1",
"react": "0.0.0-experimental-2b036d3f1-20240327",
"react-dom": "0.0.0-experimental-2b036d3f1-20240327",
"react-error-boundary": "npm:@kentcdodds/temp-react-error-boundary@4.0.13",
"react-error-boundary": "^4.0.13",
"react-server-dom-esm": "npm:@kentcdodds/[email protected]"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"react": "https://esm.sh/[email protected]?pin=v126&dev",
"react-dom": "https://esm.sh/[email protected]?pin=v126&dev",
"react-dom/": "https://esm.sh/[email protected]&pin=v126&dev/",
"react-error-boundary": "https://esm.sh/@kentcdodds/temp-[email protected]?pin=126&dev",
"react-error-boundary": "https://esm.sh/[email protected]?pin=126&dev",
"react-server-dom-esm/client": "/js/react-server-dom-esm/client"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"express": "^4.19.1",
"react": "0.0.0-experimental-2b036d3f1-20240327",
"react-dom": "0.0.0-experimental-2b036d3f1-20240327",
"react-error-boundary": "npm:@kentcdodds/temp-react-error-boundary@4.0.13",
"react-error-boundary": "^4.0.13",
"react-server-dom-esm": "npm:@kentcdodds/[email protected]"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"react": "https://esm.sh/[email protected]?pin=v126&dev",
"react-dom": "https://esm.sh/[email protected]?pin=v126&dev",
"react-dom/": "https://esm.sh/[email protected]&pin=v126&dev/",
"react-error-boundary": "https://esm.sh/@kentcdodds/temp-[email protected]?pin=126&dev",
"react-error-boundary": "https://esm.sh/[email protected]?pin=126&dev",
"react-server-dom-esm/client": "/js/react-server-dom-esm/client"
}
}
Expand Down
2 changes: 1 addition & 1 deletion exercises/02.no-ssr/05.solution.client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"express": "^4.19.1",
"react": "0.0.0-experimental-2b036d3f1-20240327",
"react-dom": "0.0.0-experimental-2b036d3f1-20240327",
"react-error-boundary": "npm:@kentcdodds/temp-react-error-boundary@4.0.13",
"react-error-boundary": "^4.0.13",
"react-server-dom-esm": "npm:@kentcdodds/[email protected]"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion exercises/02.no-ssr/05.solution.client/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"react": "https://esm.sh/[email protected]?pin=v126&dev",
"react-dom": "https://esm.sh/[email protected]?pin=v126&dev",
"react-dom/": "https://esm.sh/[email protected]&pin=v126&dev/",
"react-error-boundary": "https://esm.sh/@kentcdodds/temp-[email protected]?pin=126&dev",
"react-error-boundary": "https://esm.sh/[email protected]?pin=126&dev",
"react-server-dom-esm/client": "/js/react-server-dom-esm/client"
}
}
Expand Down
2 changes: 1 addition & 1 deletion exercises/02.no-ssr/05.solution.client/server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ app.get('/:shipId?', async function (req, res) {
})

const server = app.listen(PORT, () => {
console.log(`✅ SSR: http://localhost:${PORT}`)
console.log(`✅ http://localhost:${PORT}`)
})

closeWithGrace(async ({ signal, err }) => {
Expand Down
1 change: 1 addition & 0 deletions exercises/02.no-ssr/06.solution.router/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
3 changes: 3 additions & 0 deletions exercises/02.no-ssr/06.solution.router/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
package-lock.json
built_node_modules
Loading

0 comments on commit dfe6244

Please sign in to comment.