Skip to content

This project provide skeleton or template aim to help people quickly started with creating their own React library (not app),using vite, ts, less

License

Notifications You must be signed in to change notification settings

codeDebugTest/react-library-skeleton

Repository files navigation

react-library-skeleton

This project provide skeleton or template aim to help people quickly started with creating their own React library (not app),using:

Usage

build output

it will build output to dist folder. Also make react, react-dom as peer dependencies to the bundle. If you want add another dependencies, you can add it to peerDependencies in package.json and add external to vite.config.ts.

state management

if you want to use redux, please check react-redux. if don't want to use any state management, you can remove zustand and replace it with your own state management. This project just give a example on zustand/useConfigStore.

react compatible

this project is compatible with react 17.0.2, although it use react 18 as the development version. The implementation references to rc-util.

Development

local development

npm run serve

Runs the app in the development mode.
Open http://localhost:5173/ to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

building

npm run build

About

This project provide skeleton or template aim to help people quickly started with creating their own React library (not app),using vite, ts, less

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published