use-sheet
v0.1.0
Published
A React Hook to use Google Drive spreadsheets as a database
Downloads
6
Maintainers
Readme
use-sheet
A React Hook that loads data from a Google Spreadsheet. A wrapper for drive-db
:
export default () => {
const users = useSheet('1fvz34wY6phWDJsuIneqvOoZRPfo6CfJyPg1BYgHt59k');
if (!users) return 'Loading...';
if (!users.length) return 'No user yet...';
return <ul>{users.map(user => <li>{user.firstname}</li>)}</ul>;
};