Duration
5 min
Access
Pro
Transcript
Available

Our tic-tac-toe UI has to display our grid data. Using CSS Grid to do so is :chefs_kiss:. We'll create Grid and Cell components to handle our data. The Grid component will map our rows and columns and use the CSS Grid layout engine to correctly place them. We'll make our grid generically handle any amount of rows and columns we would throw at it. We'll use a simple trick with the grid-gap property to easily create the crossing lines of a tic-tac-toe game.