From the course: Building UI Components with Storybook: Master React Components and UI Design with Storybook for Better Efficiency

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

What are hooks in React

What are hooks in React

Everything we've done up to this point has been learning the basics of how React works, how create React app works, and we've managed to switch back and forth now with two components that pass properties from a parent to child, with this different text title component that can then change. So that's very important properties. But the one thing that we ended off discussing here from the last lesson was, well, this is all great and reusable for us as developers, but for the actual user, they can't really do much with this app. A huge part of web application development is interactions. So it's very important when we look at React fundamentals, without getting advanced, because this isn't an advanced React course by any means. But at least for fundamentals, well, what if the user wants to click on something, change something? How do we handle those types of actions with React? Since we don't want to do get element by this, get query selector, etc. that's not the way we want to do it. We…

Contents