${columnNames.map(name => F`${{key:`col${name}`}} `)} ${schedule(rowNames, async rowName => await F`${{key:`row${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})} `, {batchSize: 1}) }
${name}
${rowName}

You can use syntax like = a1 * b2. All regular JavaScript syntax and Math functions work.