react-table-npm-library-v6

1.0.9 • Public • Published

Installation

npm i react-table-npm-library-v6

Introduction

this library was used to validate my last project school

it was used for adding a table in my React programm .

Description

this provide a table easily by installation and import. Can be easy to customize You can choose the number of headers in the first array provided by props you can provide in second props an array of objects for the datas in props each object will be a line in you table

recommandation : give equaly the number of header with the number of field in each object.

Key word

<Table header={header} users={user}>

Installation

first of all install the library in your environment with : npm i react-table-npm-library-v6

you need to set the typescripe mode for using

after you just have to import like this : import { Table } from "react-table-npm-library-v6";

you need 2 arrays for that, one for the header, and the second for the informations like in the example bellow:

const header=["nom","prénom","age"...]

The second array can be an array of object like this :

const user=[{nom:"Dupont",prenom:"Robert",age:"36 ans"},{nom:"Martin",prenom:"Maurice",age:"56 ans"}...]

Usage

When the déclarations are done, you can use it like that

render: function () {
return (
// ...
<Table header={header} users={user}>
// Content

);
}

Enjoy...

Readme

Keywords

none

Package Sidebar

Install

npm i react-table-npm-library-v6

Weekly Downloads

0

Version

1.0.9

License

ISC

Unpacked Size

74.4 MB

Total Files

75

Last publish

Collaborators

  • emmanuel95bis