react fluid table
1.2.2
Une table de réact inspirée de @ tanstack / react-virtual
# using yarn
yarn add react-fluid-table
# using npm
npm i react-fluid-table import "react-fluid-table/dist/index.css" ; // this only needs to be imported once
import { Table } from "react-fluid-table" ;
const data = _ . range ( 100 ) . map ( i => ( {
id : i + 1 ,
firstName : randFirstName ( ) ,
lastName : randLastName ( ) ,
email : randEmail ( )
} ) ) ;
const columns = [
{
key : "firstName" ,
header : "First Name" ,
width : 100
} ,
{
key : "lastName" ,
header : "Last Name" ,
width : 100
} ,
{
key : "email" ,
header : "Email"
}
] ;
const Example = ( ) => < Table data = { data } columns = { columns } /> ; Pour faire fonctionner un environnement de développement, exécutez ce qui suit:
Installation
$ yarn install
$ cd example
$ yarn installUsage
# in one terminal window/tab
$ yarn start
# in a separate terminal window/tab
$ cd example
$ yarn devMIT © McKervin CEME <[email protected]>
Cette application a été créée à l'aide de Create-Rook-Hook.
Cette application propose des icônes de Font Awesome.