0.4.6 • Published 2 years ago

my-personal-table v0.4.6

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

DataTable React Component

Installation

To install the DataTable component, you can use npm by running the following command:

npm install my-personal-table

Usage

To use the DataTable component, you need to import it into your React application and pass an array of data as the data prop.

Here's an example of how you can import and use the DataTable component:

import React from 'react';
import DataTable from 'my-personal-table';

const MyComponent = () => {
  const data = [
    { id: 1, name: 'John Doe', age: 25 },
    { id: 2, name: 'Jane Smith', age: 30 },
    { id: 3, name: 'Bob Johnson', age: 35 },
  ];

  return (
    <div>
      <h1>My Data Table</h1>
      <DataTable data={data} />
    </div>
  );
};

export default MyComponent;

Props

The DataTable component accepts the following props:

  • data (required): An array of objects representing the data to be displayed in the table. Each object should contain properties corresponding to the table columns.

Contributions

Contributions are welcome! If you find any issues or have suggestions for improvements, please feel free to create an issue or submit a pull request on the GitHub repository.

0.4.6

2 years ago

0.4.5

2 years ago

0.4.4

2 years ago

0.4.3

2 years ago

0.4.2

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.9

2 years ago

0.3.8

2 years ago

0.3.7

2 years ago

0.3.6

2 years ago

0.3.5

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago