Skip to content

Commit

Permalink
improve instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Jun 20, 2024
1 parent d320074 commit 38a8319
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exercises/04.router/01.problem.router/ui/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function Root() {
function navigate() {
// 🐨 set the location to the nextLocation
// 🐨 create a nextContentFetchPromise which is set to fetchContent(nextLocation)
// 🐨 add a .then handler to the fetch promise
// 🐨 add a .then handler to the fetch promise which accepts the response
// - if replace is true, call window.history.replaceState({}, '', nextLocation)
// - otherwise, call window.history.pushState({}, '', nextLocation)
// - return the response
Expand Down
2 changes: 1 addition & 1 deletion exercises/05.actions/03.problem.server/server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ app.get('/rsc/:shipId?', async context => await renderApp(context))
// 4. get the formData object from the quest (💰 await context.req.formData())
// 5. decode the reply from the formData object (await decodeReply(formData, moduleBasePath))
// 6. call the action with the ...args
// 7. call renderApp with the res and the returnValue of the action
// 7. call renderApp with the context and the returnValue of the action

app.get('/:shipId?', async context => {
const html = await readFile('./public/index.html', 'utf8')
Expand Down

0 comments on commit 38a8319

Please sign in to comment.