React implementation of John Conway's Game of Life.
- Any
live
cell withfewer than 2
live neighborsdies
, as if caused by under-population. - Any
live
cell with2 or 3
live neighborslives
on to the next generation. - Any
live
cell withmore than 3
live neighborsdies
, as if by overpopulation. - Any
dead
cell withexactly 3
live neighborsbecomes a live
cell, as if by reproduction.
-
Run app in development mode (http://localhost:5173):
npm run dev
-
Build app for production and output it to the
/dist
folder:npm run build
-
Start local web server that serves the built solution from
/dist
folder for previewing:npm run preview