Students add a thunk to the ski day counter that can suggest ski resort names. The isomorphic-fetch library is used inside of the thunk to make a request of the suggestions server. The data layer for the ski day counter is completed in this video lesson.
- [Instructor] The last action creator that we need to build…is a single action creator…that can handle suggesting resort names.…So we're going to be using our resort name suggestion server.…I'm currently in the Terminal in exercise files,…in chapter four, in chapter four lesson five…under the start folder.…Now in order to make an Ajax request…of our suggestion server,…we're going to use a library called isomorphic fetch.…Go ahead and install isomorphic fetch,…and we'll send it a save flag as well.…
So isomorphic fetch is an implementation…of the whatwg fetch specification…that works both in Node JS and in the browser.…So we can make fetch requests for URLs using this method.…Now, additionally I want to make sure that my server's running…so I'm going to go ahead and npm run suggestions.…And we have the suggestion sever running on port 3333…with a half second delay.…So I can go ahead and test that out…by going over to the browser and making a request…for all resorts.…
So there, we see our suggestion server's currently running.…
- What is Redux?
- Building object and array reducers
- Combining reducers
- Creating a store
- Creating middleware
- Building action creators
- Incorporating React components
Skill Level Intermediate
1. What Is Redux?
2. Understanding Reducers
3. The Store
4. Action Creators
5. Incorporating React
React app overview7m 24s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.