| ${columnNames.map(name => F`${{key:`col${name}`}} | ${name} | `)}
|---|---|
| ${rowName} | ${schedule(columnNames, async colName => { const key = `${colName}${rowName}`; /** DON'T do this /* setting state within a render will cause /* unnecessary re-renders as well as race-condition errors if ( ! cell[key] ) { cell[key] = {key, formula: '', value: ''}; } **/ return await F`${{key}}`}, {batchSize: 5})} |
You can use syntax like = a1 * b2. All regular JavaScript syntax and Math
functions work.