Giter VIP home page Giter VIP logo

react-standard-components's Introduction

react-standard-components

React组件库实践

技术栈:React + Typescript + Less + Rollup + Storybook

组件库用Rollup.js构建,目前支持2种format:umdesm

样式用style inject方式处理,所以不存在单独的css产物。引入组件时也不需要额外引入.css文件,直接引入组件bundle即可。

支持alias,默认别名有:"@/*": ["src/*"],可自行修改。需要注意的是Storybook有自己的配置在.storybook/main.js

Storybook介绍

Storybook是一个用于构建、测试和展示React、Vue、Angular等UI组件的开源工具。它提供了一个独立的开发环境,可以让开发者在不必担心应用程序结构和业务逻辑的情况下,专注于UI组件的开发和测试。Storybook具有可扩展性强、易于使用、文档丰富等特点,是开发高质量UI组件的利器。

调试

npm run site

构建文档

npm run site:static

相关链接: https://storybook.js.org/

最后

如果觉得好用的话求个star~

react-standard-components's People

Contributors

qlly0630 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.