use-airtable-crud
Install
npm install --save airtable use-airtable-crud
Usage
const { records, createRecord, updateRecord, deleteRecord, getRecords, loading } = useAirtable(
'TABLE_NAME',
AIRTABLE_API_KEY,
'TABLE_BASE_ID',
{
// optionally, you can add some selectOptions
filterByFormula: '{myField} = TRUE()',
},
);
How was it built ?
I used this template to build this project. Thank you @kotarella1110 for the great work!
This hook is heavily inspired from this one, but it has some bugs and looks unmaintained so I decided to make my own.