Current section: Raw React APIs 59 exercises
Problem

Create React Elements

Loading exercise

Transcript

00:00 So, for this exercise, we need to bring React and ReactDOM onto the page and use their Create Element and Create Root APIs. You can dive into the public directory of the workshop repo to see what these files are. But, yeah, that's how we're going to get React on the page. As a reminder, this is not typically how you bring React on the page.

00:19 Typically you're going to have a whole build tool and a build pipeline, all that stuff, because you want to have typings and you want to have bundling and all that stuff, optimizations But, for us, we're doing things as simple as possible, so we're just bringing in React and ReactDOM this way.

00:36 And you're going to change from Document Create Element and all of that stuff into React Create Element and how that all works. So it should be a fun little migration. By the end of it, your app should look exactly the same as it does now, but it will be made with declarative React APIs instead. So have a good time with this. We'll see you when you're done.