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
From the course: Spring Boot and React: Build Scalable and Dynamic Web Apps
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.