import { faXmark } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { CSSProperties } from 'react'; import './App.scss'; function App() { let borders: JSX.Element[] = []; let elems2: { field: string, x: number, y: number, }[] = []; let elems: { field: string, x: number, y: number, }[] = [], count = 12; for (let x = 0; x < count; x++) { elems2.push(...[ { field: String.fromCharCode(65+x), x: x+2, y: 1 }, { field: (x+1).toString(), x: 1, y: x+2 }, { field: String.fromCharCode(65+x), x: x+2, y: count+2 }, { field: (x+1).toString(), x: count+2, y: x+2 } ]) for (let y = 0; y < count; y++) { elems.push({ field: String.fromCharCode(65+x)+(y), x: x+2, y: y+2 }) } } for (let x = 0; x < count+2; x++) { for (let y = 0; y < count+2; y++) { borders.push(
) } } return (
Edit src/App.tsx
and save to reload.