perennialAutodidact / memory-snap

0 stars 0 forks source link

Gameboard - Tile Component #1

Closed perennialAutodidact closed 1 year ago

perennialAutodidact commented 1 year ago

The Tile component will be rendered for each Tile in the game. Each Tile will have a "back", which will render as a plain color, and a "front", which will render the Tile's image. Based on the value of the component's faceUp prop, either the back or the front will be rendered. The logic for toggling the faceUp boolean will be managed in a parent component.

The Tile component will receive props:

See design/components/Tile.drawio.svg in the repo for design specs.