Current section: Element Optimization 33 exercises
Problem

Element Props

Loading exercise

Transcript

00:00 So it was easier before when the footer didn't actually accept any props or anything like that But now the footer will actually change when you change the color and it shouldn't re-render when the counter is clicked So we have to move things back into our render

00:14 But is there something that we can do to make it so that the footer doesn't re-render when the counter is clicked and it does When you change the color so re-render only in one situation not the other and right now we have it re-rendering in both situations Which is not desirable I want to make it so that when I increment the count it doesn't re-render when I change the color it does

00:35 That is your objective in this exercise. I think that you're gonna have a good time