To complete this project in this video, learn how to get the PostForm component to update the message list component so additional calls to the server for data aren't needed. Also, discover a few other cleanups you should do in your project.
- [Instructor] In this video we are going … to finish this project. … Updating the post form component so … it can trigger a direct update … to the list of messages. … Basically we need to create a function … that can add a message to the list … over here and use that function in … the post form component. … Over here in the code, we'll start where … the state data now live, in the … status message manager. … Scroll down to the component. … Here we are, and now below our … retrieve status messages function … we'll define a new function called … add status message. … And the expectation is that we will have … a status message to add. … So what we need to do here is … eventually call set statuses with … some updated data, some updated statuses we'll say. … Now we don't want to change the … statuses state directly. … What we'll do is follow the pattern that … we follow in react of creating a new … variable, which we'll call updated statuses. … Which will start out as statuses as they are. …
- Installing React on an existing site
- Thinking about a design in terms of components
- Creating fully-featured function components using Hooks
- Storing and retrieving data from an external RESTful API
- Employing third-party components for CSS animation
- Using conditional rendering
Skill Level Intermediate
Essentials of CSS for React Developerswith Eric Greene53m 31s Beginner
React.js Essential Training (2018)with Eve Porcello1h 25m Intermediate
Using the exercise files1m 2s
1. Introducing React
2. First Project: Customizer
3. Second Project: Directory Browser
4. Third Project: Status Updater
- 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.