(groovy music)…- Now what about this react thing?…So the observation that we need to make is that,…promises are really powerful.…But they do not map well to event streams…because a promise, once created,…can only be resolved once.…Which will be great if you were…only ever going to get one request…against your server, but you're not,…you're going to get loads of them.…And so, there is this principle of streams,…which are what the request and…response objects are themselves.…
But how do we asynchronously respond…every time a new stream spins up, how do we handle it?…One way of doing that, if I were to just suggest…some pseudoscope, one way of doing that…is you could have a stream object…that represented this stream of incoming requests…and you could listen for, whatever the event might be.…I think it's the request event…that the http servers spends,…and inside of here,…that is, every time a new request comes in,…you could fire off your whole stream…of routing processing inside of this function…and many people do that and it's perfectly fine.…
Note: This course was created on 03/29/2016 by Frontend Masters. We are pleased to host this content in our library.
- Carousels, panes, and modules
- Middle-end architecture
- Secure phrase generator
- Routing functions
- Calling the API
- Rendering on the page
- Shared data validation
Skill Level Intermediate
2. Organizing Code
5. Adding a Shared Module
- 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.