From 01a462f8126ecb29035fb1e1648301af7afccd81 Mon Sep 17 00:00:00 2001 From: Jonny Burger Date: Sat, 23 Dec 2023 13:28:49 +0100 Subject: [PATCH] how to install react --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 5721d5d..96f1752 100644 --- a/README.md +++ b/README.md @@ -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: