Join Joe Chellman for an in-depth discussion in this video Solution: Better usability and animation, part of React for Web Designers (2018).
- Let's take a look at one possible solution…to this usability and animation challenge.…So we can see there's a reset button here.…If I try setting a few of these filters,…I have some different animations happening,…and if I click reset,…I have all the people once again.…Alright, let's look at the code.…So first we'll take a look at…the reset button implementation.…That's going to be down here in filters.…So I'll scroll down first to the elements…that create the reset button.…
I just used another one of these divs with…the class group and put a reset button in there…and it has an event handler on click…which is calling a function called reset filters.…Function which is defined up here.…And this is just calling props.update form state…for each of the elements of state that need to be updated.…Now anytime that you start writing the same…thing more than once, that's an opportunity…to make some changes which is something that you could do…by changing how this function works…and maybe we'll look at that later.…
But that's the reset button, pretty straightforward.…
- 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.