react-reusable-table-library
v1.0.7
Published
A reusable React table component library by Abhishek
Downloads
21
Maintainers
Readme
react-reusable-table-library React Component Library
This package contains reusable React components, including the ReusableTable component.
Installation
You can install the package from npm (once published):
npm install react-reusable-table-libraryUsage
Import the components you need:
import { ReusableTable } from 'react-reusable-table-library';
const data = [
{ id: 1, name: 'John', age: 30 },
{ id: 2, name: 'Jane', age: 25 },
];
function App() {
return <ReusableTable data={data} title="User Data" />;
}Development
To build the package locally, run:
npm run buildThis will create a dist folder with the bundled files.
Publishing
The package is configured to build with Rollup and output CommonJS and ES module formats.
Before publishing, ensure you are logged in to npm:
npm loginTo publish the package, run:
npm publish --access publicNote: The package has peer dependencies on react and react-dom. Make sure these are installed in your consuming project.
License
MIT
