Game of Life with client-side JSX
Conway's Game of Life, where every generation is markup: plain JSX components with jsx-async-runtime render it on the server first and in your browser after that.
The server renders the first generation, then the very same components render every following generation in your browser, without React, a virtual DOM or hydration. Hold the mouse button and drag to paint cells.
Generation0
Population15
FPS0
- Birth A dead cell with exactly three live neighbors comes to life.
- Survival A live cell with two or three live neighbors stays alive.
- Death Every other cell dies of loneliness or overcrowding.