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.
Input dynamic tests and events with React
From the course: Building UI Components with Storybook: Master React Components and UI Design with Storybook for Better Efficiency
Input dynamic tests and events with React
Great work making it this far. If some of this is making sense to you, fantastic. Even if you constantly have to go back or go through it again, totally normal, especially if you're new, to react. We've taken a look at how state management can work locally here. That's great. We're conditionally rendering, but we still have to change these values in the back here in our code. What we want instead is now that we have the state set up, we want the user to be able to type into an input, put in a password, hit enter, and then conditionally change the rendering. How do we do that? Well, the first thing we need is an input field, I would imagine. We need to have an input field that can handle that. What we're going to do is we're going to create an input field above our title over here that essentially has a button. So when the user goes to the homepage, they can see some stuff. If they put in a password, then they get special access to the contact page, something like that. and they get…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
(Locked)
Important note on the upcoming sections3m 20s
-
(Locked)
What is the DOM and what is the React Virtual DOM? React fundamentals8m 31s
-
(Locked)
How to start building a React app with CRA4m 2s
-
(Locked)
CRA: React files and dependencies, an overview8m 51s
-
(Locked)
How to connect the root of React to the DOM and rendering React application6m 59s
-
(Locked)
Running a local development server of React9m 10s
-
(Locked)
What are functional components in React11m 2s
-
(Locked)
Quick observation on ECMAScript standards with React3m 36s
-
(Locked)
The React component tree and composite components8m 34s
-
(Locked)
How props work in React7m 6s
-
(Locked)
Exercise: Build a React component7m 50s
-
(Locked)
What are hooks in React12m 24s
-
(Locked)
Input dynamic tests and events with React9m 20s
-
(Locked)
Event handling practice and section summary12m 41s
-
(Locked)
-
-
-
-
-