[WIP] bare react.
This commit is contained in:
parent
f8854096e5
commit
aa8ddde965
18 changed files with 19959 additions and 1 deletions
13
src/Maze.js
Normal file
13
src/Maze.js
Normal 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>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue