react-library-vite-example
react-library-vite-example copied to clipboard
Create a React library with Vite and Typescript
Create a React Library with TypeScript and Vite
This repository is an example of a React library created with TypeScript and Vite.
Getting Started
First, install the dependencies of the monorepo:
yarn install
Build the library:
cd packages/my-lib && yarn build
Run the development server of the test project:
cd sites/my-site && yarn dev
Open http://localhost:3000 with your browser to see the result.
If you want to start the storybook server, run:
cd packages/my-lib && yarn storybook