Giter Club home page Giter Club logo

react-library-skeleton's Introduction

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

react-library-skeleton's People

Contributors

codedebugtest avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.