TenkaTable関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
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 { TenkaTable } from "@johnmorrisdotca/tenka/react";
定義
function TenkaTable({ players, computers, rounds, seed, map, colours, computerDelayMs, onChange, locale, strings, theme, record, dressing, ...element }: TenkaTableProps): React.JSX.Element
引数
| 名前 | 型 | 説明 |
|---|---|---|
options | TenkaTableProps | The component, table or display options. |
戻り値
React.JSX.Element
The React host element for the native playable table.
例
import {createElement} from "react";
import { TenkaTable } from "@johnmorrisdotca/tenka/react";
console.log(createElement(TenkaTable,{seed:42,record:false}));この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。