Transcript
00:00 So, the first thing that we're going to do is update the render function call to call render after sending the state. So, that's our objective, but we need to have a render function. So, unfortunately, we are not reacting. We cannot just say, hey, render this component. And so, we're actually going to re-render our entire application, which consists of
00:19 just a single component. So, this will work out nicely for us. So, we're going to say render right here. We'll stick app.render in there, and then we're going to call render to kick things off initially. If we didn't do that, then we'd just end up with a blank screen. That doesn't do anything. So, we do have to kick it off for that initial render.
00:37 But now that we have this render function, we can call it right here to trigger a re-render of our application. Now, it's still not working, but you'll notice that we are getting that console log in our render function body right here in our counter component. And so, that is working properly. We are triggering a re-render.
00:55 The problem is that the count just isn't changing. I'll think about that for a little bit. We'll get to that in the next step. But this is getting us to trigger a re-render whenever the state changes. So, good job.