With React Library Template Repository, you can focus on developing your React components and libraries without worrying about the configuration and setup.
Read full documentation.
Visit Demo Storybook.
- Supports Typescript and Javascript.
- Bundles
commonjs
andes
module formats. - pnpm for blazing fast package management.
- Vite for speedy bundling
- Husky for git hooks.
- Eslint and stylelint.
- Rollup for bundling.
- Jest and react-testing-library for testing.
- Storybook for documentation and demo.
- Optional Tailwind CSS support.
- Install Node >= 20.x.
- Install pnpm. E.g.
corepack prepare pnpm@latest --activate
.
Manually clone repo or use degit
.
# With CSS Modules config
npx degit github:morewings/react-library-template my-library
# With Tailwind CSS config
npx degit github:morewings/react-library-template#tailwind my-library
cd ./my-library
pnpm i