Skip to content

Commit

Permalink
how to install react
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyBurger committed Dec 23, 2023
1 parent 328a91e commit 01a462f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,19 @@ pnpm run dev
Open the browser on http://localhost:3000 to see the testbed.
Edit the `packages/library` folder to change your library and edit `packages/example` to edit your testbed.

## Adding React

This template does not include React by default.
If you are shipping a React component, you can add it to your library by running:

```sh
cd packages/library
npm i "react@^18.0.0" "react-dom@^18.0.0" --save-peer
pnpm i @types/react @types/react-dom --save-dev
```

Change the versions to the ones you want to support.

## Linting

To lint your code, run:
Expand Down

0 comments on commit 01a462f

Please sign in to comment.