@rebecarose/react-table
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

React Table

React Table is available as an npm package.

Installation

- with npm
npm install @rebecarose/react-table

- with yarn
yarn add @rebecarose/react-table

Getting started with React Table

View the Demo and its source for more.

import React, {useState} from 'react';
import { Table } from '@rebecarose/react-table';

const fields = [
    {title: 'Id', key: 'id', type: 'number'},
    {title: 'Name', key: 'name', type: 'string'},
];

const items = [
    {id: 1, name: 'João'},
    {id: 2, name: 'Maria'},
    {id: 3, name: 'Ana'},
    {id: 4, name: 'Matheus'},
    {id: 5, name: 'Gabriel'},
];

const App = () => {
    return (
        <Table
            items={items}
            fields={fields}
        />
    )
}

Readme

Keywords

none

Package Sidebar

Install

npm i @rebecarose/react-table

Weekly Downloads

2

Version

0.1.4

License

MIT

Unpacked Size

3.44 MB

Total Files

161

Last publish

Collaborators

  • rebecarose