Join Joe Chellman for an in-depth discussion in this video Completing the status updater, part of React for Web Designers (2018).
- [Instructor] In this video,…we're going to finish what we started…and allow the PostForm to trigger an update…to the status list.…So in order for the PostForm to do this,…I need a little bit more work in the parent component.…So I'm going to use Command + Shift + O…to open up my symbol browser.…I'm going to jump down to the StatusMessageManager.…We have retrieveStatusMessages,…and I want to add one more helper function.…I've added a snippet for it…to save us a little typing.…So let's copy this add status message…and paste it in.…
This function will accept a status object…which'll be built by the PostForm,…and then we're doing an update…to the statuses piece of state…by first making a copy of it using slice…and then pushing our new status update…onto the end of that array…and resetting the state.…We're going to pass this down into the PostForm as a prop.…This will be addStatusMessage equals…this.addStatusMessage.…And to make sure that this continues to work inside there,…we're going to need to add our boilerplate…
- Identify notable features about how React works.
- Identify good early steps for any React project.
- Explain why the little PHP app that powers our API has a way to add delay.
- Outline what a lifecycle method is.
- Recall the React convention that must be followed when adding a status message.
- Explain the purpose of React.Fragment.
Skill Level Intermediate
1. Introducing React
2. First Project: Customizer
3. Second Project: Directory Browser
4. Third Project: Status Updater
Next steps: Lots more React2m 37s
- 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.