I have created my helloworld block successfully. now i want to create table called my-first-table and add records to it.
I have coded this but it displays error
ReferenceError: table is not defined or ui.tableundefine
import {initializeBlock, useBase, table, createRecordAsync} from '@airtable/blocks/ui';
import React from 'react';
import {base} from '@airtable/blocks';
// Create table called my_first_table with its columns and add records to it.
const tab =table.createRecordAsync(my_first_table);
const tab1 = table.createRecordAsync([{'id': '1'},{'fullname': 'John Henry'},{'title': 'my-first-title'}, {'details': 'my-first-descriptions'}] );
if(tab1){
alert('table and record successfully created and added');
}
Please how do I create table and then add records to it. Again if I want add id column how do I make it to be auto_increment