daep93 / react-library-vite-example

Create a React library with Vite and Typescript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Create a React library with Vite and Typescript

License:MIT License


Languages

Language:TypeScript 59.2%Language:CSS 20.4%Language:HTML 11.6%Language:JavaScript 8.8%