TenkaTablefunction
A whole table against the computer, as a React component: the plain-DOM
table (mountTenka) mounted into this component's element once the
browser has it. Options are read when it mounts; give it a new key to
start over with different ones.
Import it
import { TenkaTable } from "@johnmorrisdotca/tenka/react";
Definition
function TenkaTable({ players, computers, rounds, seed, map, colours, computerDelayMs, onChange, locale, strings, theme, record, dressing, ...element }: TenkaTableProps): React.JSX.Element
Parameters
| Name | Type | Description |
|---|---|---|
options | TenkaTableProps | The component, table or display options. |
Returns
React.JSX.Element
The React host element for the native playable table.
Examples
import {createElement} from "react";
import { TenkaTable } from "@johnmorrisdotca/tenka/react";
console.log(createElement(TenkaTable,{seed:42,record:false}));