From the course: Spring Boot and React: Build Scalable and Dynamic Web Apps

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Adding React

Adding React

- [Instructor] All right, now that we get this Spring Boot skeleton set up, let's embed a React Skeleton application within our Spring Boot project itself. So the first thing that I want you to do is to open up a terminal and navigate to the root of where your exercise files are. For me, this is code/spring-react, and you will notice that there is a Spring React folder in your exercise files. So from there, I want you to go into the wisdom pet directory. And now, you are going to type this command, npx create-react-app and we're going to go to src/ui. So it's going to create an application called UI in src/ui, and we'll go ahead and hit Enter. And now we're going to let React do its thing. It's going to take a few minutes to get everything downloaded so just be patient. All right, hopefully that didn't take too long for you. So now that that's done, we need to add one dependency to our package. So we're going to…

Contents