JSPM

react-reusable-table-library

1.0.7
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q25627F
  • License MIT

A reusable React table component library by Abhishek

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-library

Usage

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 build

This 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 login

To publish the package, run:

npm publish --access public

Note: The package has peer dependencies on react and react-dom. Make sure these are installed in your consuming project.

License

MIT