Skip to content

Commit

Permalink
jsx react fix + rollup external + small README change + React update …
Browse files Browse the repository at this point in the history
…dev dep
  • Loading branch information
RedHeadphone committed Oct 7, 2024
1 parent 51e8412 commit 7f6f156
Show file tree
Hide file tree
Showing 5 changed files with 97 additions and 193 deletions.
20 changes: 2 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,13 @@ The library react-json-grid provides the React component JSONGrid, which is a us

## Install

Run either one in your React project directory:
Run the following command in your React project directory:

```bash
npm install @redheadphone/react-json-grid
```

```bash
yarn add @redheadphone/react-json-grid
```

### CDN

You can also include the library directly via CDN:

```html
<script src="https://unpkg.com/@redheadphone/react-json-grid@{version}/dist/index.umd.js"></script>
```

Replace {version} with the desired version number, like 0.6.0. Then, use the component as follows:

```jsx
const JSONGrid = window['react-json-grid'];
```
You can also use other package managers like `yarn` or `pnpm`, if preferred.

## Usage

Expand Down
Loading

0 comments on commit 7f6f156

Please sign in to comment.