An open API service indexing awesome lists of open source software.

https://github.com/ssiyad/frappe-straw

Yet another straw to consume Frappe, for React
https://github.com/ssiyad/frappe-straw

frappe frappe-framework javascript react typescript

Last synced: 20 days ago
JSON representation

Yet another straw to consume Frappe, for React

Awesome Lists containing this project

README

        


Frappe Straw









Minimal, pleasant and easy to use
Frappe
client.

Made with ❤️ at Bytsolv.

## Demo
You can install the demo app from
[here](https://github.com/ssiyad/frappe-straw-demo). It contain example code
and a playground. This can also be used as a test suite for development of this
plugin.

## Installation
```shell
npm install frappe-straw
```

Example
```typescript
import { useDocument } from 'frappe-straw';
import { type BaseDocument } from 'frappe-straw/types';

const { data, error, loading, refresh } = useDocument(
'Role',
'Guest',
{
fetchOnMount: false,
},
);
```

## Inspirations
- [Frappe JS SDK](https://github.com/The-Commit-Company/frappe-js-sdk)
- [frappe-ui](https://ui.frappe.io/)

## License
[GPLv3](LICENSE)