Adding Our First Component

Learn how to add a component using React in this lesson.

Using React for concert seats

Let’s take a moment to discuss what we’ll be doing with React. The concert display page was part of our original Rails app, but we haven’t looked at it closely yet. It currently has a grid of seats that we’d like to use to allow people to select which seat they want to purchase at the particular concert being displayed.

Right now, it’s a grid of squares in an HTML table:

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy