[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

16
src/App.js Normal file
View file

@ -0,0 +1,16 @@
import React from 'react';
import Maze from "./Maze";
import {maze1, maze2, maze3} from "./testdata";
export default function Square() {
const mazes = [{grid: [[]]}, maze1, maze2, maze3];
const renderedMazes = mazes.map(maze => (<div>
<h1>The Maze ({maze.width}x{maze.height}).</h1>
<Maze labyrinth={maze}/>
</div>))
return (
<div>
{renderedMazes}
</div>
);
}