https://github.com/dckt/rescript-tanstack-react-table
ReScript bindings for @tanstack/react-table
https://github.com/dckt/rescript-tanstack-react-table
Last synced: 5 months ago
JSON representation
ReScript bindings for @tanstack/react-table
- Host: GitHub
- URL: https://github.com/dckt/rescript-tanstack-react-table
- Owner: DCKT
- Created: 2024-02-19T09:14:59.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-20T07:35:37.000Z (over 2 years ago)
- Last Synced: 2025-04-05T16:35:05.653Z (about 1 year ago)
- Language: ReScript
- Size: 65.4 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# rescript-tanstack-react-table
ReScript bindings for [@tanstack/react-table](https://tanstack.com/table/latest) (targeted version : `~8.12.0`)
## Setup
1. Install the module
```bash
bun install @dck/rescript-tanstack-react-table
# or
yarn install @dck/rescript-tanstack-react-table
# or
npm install @dck/rescript-tanstack-react-table
```
2. Add it to your `rescript.json` config
```json
{
"bsc-dependencies": ["@dck/rescript-tanstack-react-table"]
}
```
## Usage
The functions can be accessed through `ReactTable` module.
### [Basic](https://github.com/DCKT/rescript-tanstack-react-table/blob/main/examples/src/Basic.res)
### [Pagination](https://github.com/DCKT/rescript-tanstack-react-table/blob/main/examples/src/Pagination.res)
### [Row Selection](https://github.com/DCKT/rescript-tanstack-react-table/blob/main/examples/src/RowSelection.res)
## Development
Install deps
```bash
bun install
```
Compiles files
```bash
bun run dev
```
Run examples
```bash
bun run examples
```