react fluid table
1.2.2
@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 } /> ; 개발 환경이 작동하도록하려면 다음을 실행하십시오.
설치
$ yarn install
$ cd example
$ yarn install용법
# in one terminal window/tab
$ yarn start
# in a separate terminal window/tab
$ cd example
$ yarn devMIT © McKervin Ceme <[email protected]>
이 응용 프로그램은 Create-React-Hook을 사용하여 작성되었습니다.
이 응용 프로그램에는 Font Awesome의 일부 아이콘이 있습니다.