mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
Day 2 steps 7-9 updates
This commit is contained in:
@@ -2,14 +2,13 @@
|
||||
|
||||
[Lessons](../) | [Exercise](./exercise/) | [Demo](./demo/)
|
||||
|
||||
> Note: this step doesn't work with the live site on github.io. Clone this repo to try this step out
|
||||
> Note: this step doesn't work with the live site on github.io. Clone the repo to try this step out.
|
||||
|
||||
If you don't already have the app running, start it by running `npm start` from the root of the `frontend-bootcamp` folder. Click the "exercise" link under day 2 step 9 to see results.
|
||||
|
||||
1. open up `exercise/src/service/index.ts` and study the signature of the functions to call the service such as the `add()` function
|
||||
1. Open `exercise/src/service/index.ts` and study the signature of the functions to call the service, such as the `add()` function
|
||||
|
||||
2. open `exercise/src/actions/index.ts` and fill in the missing content inside `actionsWithService`
|
||||
2. Open `exercise/src/actions/index.ts` and fill in the missing content inside `actionsWithService`
|
||||
- Note that the `complete` and `clear` functions require you to write your own wrapper function
|
||||
|
||||
- note that the `complete` and `clear` functions require you to write your own wrapper function
|
||||
|
||||
3. open `exercise/src/index.tsx` and follow the instructions in the TODO comment to make the app prepopulate with data from the service.
|
||||
3. Open `exercise/src/index.tsx` and follow the instructions in the TODO comment to make the app pre-populate with data from the service
|
||||
|
||||
Reference in New Issue
Block a user