Lesson 25: Intro to React (Slides)
Please review the following resources before lecture:
- Complete the Introduction to React exercise.
- Do pre-work for lesson 26.
This exercise will give you hands-on experience with the React framework and supporting tools to enhance a dynamic front-end application that communicates with a backend API.
- Copy the React template folder to your own unique folder. Make necessary code changes in your folder only.
- Install the React web server in your copy using
npm install
and then run it using thenpm run dev
command.
- Modify the Home component to create new
Program
andProgramList
components. The needed HTML and CSS has already been provided for you.
- The
Program
component should allow you to configure the title and description to display.
- Create a new page (similar to the Home page component) that allows users to provide a new program title and description in a form.
Note
You can use the React Router tutorial to learn how to handle form submissions.