[WIP] bare react.

This commit is contained in:
Manuel Friedli 2023-04-14 02:01:55 +02:00
parent f8854096e5
commit aa8ddde965
18 changed files with 19959 additions and 1 deletions

13
src/Maze.js Normal file
View file

@ -0,0 +1,13 @@
import React from 'react';
import Row from "./Row";
export default function Maze({labyrinth}) {
const maze = labyrinth.grid.map((row, rowIdx) => <Row key={"r" + rowIdx} spec={row}
index={rowIdx}/>);
return (
<div className={"maze"}>
{maze}
</div>
);
}