Package Exports
- react-reusable-table-library
- react-reusable-table-library/dist/index.cjs.js
- react-reusable-table-library/dist/index.esm.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-reusable-table-library) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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