Exercises: Conditional Rendering - React In Depth

Опубликовано: 30 Август 2023
на канале: Tech with Nader
572
39

Let's go through some exercises to practice Conditional Rendering in React together.

We start with a warmup to get practice conditionally rendering JSX based on a prop passed in from a parent component.

Then we look at our first exercise where we take the warmup exercise and use State to manage to condition instead of the Prop.

For the second exercise, we look at how we can use events on an input to determine a matching password.

To wrap up the video, we look at a more involved example using arrays, state and map to conditionally render names to the DOM.

Chapters:
00:00 Introduction
00:36 Warmup Exercise - Prop Conditional
09:47 Exercise 1 - State and Conditional
16:34 Exercise 2 - Authenticated State
25:18 Exercise 3 - Arrays and State
46:16 Next Steps

📦 Github Repository with the notes and exercise code+solutions: https://github.com/Nooder/react-in-depth

💬 Come join us on Discord to chat with a like-minded community about tech and learning:   / discord  

🏅Support the channel and content through Super Thanks, Channel Memberships, or on Patreon:   / techwithnader  


Смотрите видео Exercises: Conditional Rendering - React In Depth онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Tech with Nader 30 Август 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 57 раз и оно понравилось 3 людям.