项目作者: v-poc

项目描述 :
React with Vite Playground - Mobile web UI components - (react-hooks+vite2).
高级语言: TypeScript
项目地址: git://github.com/v-poc/rui-next.git
创建时间: 2021-06-12T06:29:34Z
项目社区:https://github.com/v-poc/rui-next

开源协议:MIT License

下载


rui-next (aka RUI.next)

npm docs & demos react vite

Yet another lightweight and Vite-powered Mobile web UI components based on React hooks and Vite 6.

Overview

This is just one kind of playground to dev react-hooks based UI components based on rspress. Thanks to rspress that could support React docs+demos well.

  • 📦 Out of the box - focus on component development and documentation
  • 🧑‍💻 Developer Friendly - built-in syntax highlighting, embedding React components seamlessly
  • ⚡️ Lightweight and Fast - lighter page weight, instant reloading (lightning-fast HMR) powered by Vite, faster dev server start, hot updates and build

Preview

Try QR code playground to scan to access the examples on mobile/tablet device.

react-hooks docs+demos playground based on vite.

Status

  • More UI components WIP based on React hooks.

Project setup

Install dependencies (use package manager: pnpm)

  1. $ pnpm i

Start the dev server for docs-dev

  1. $ pnpm start

Build UI library

  1. $ pnpm run build-lib

Library Mode output info

  1. vite v6.3.2 building for production...
  2. 179 modules transformed.
  3. dist/rui-next.css 39.00 kB gzip: 7.69 kB
  4. dist/rui-next.es.js 230.74 kB gzip: 68.71 kB
  5. dist/rui-next.umd.js 151.87 kB gzip: 56.25 kB
  6. built in 642ms

Build documentation (docs+demos)

  1. $ pnpm run build-docs

Customize configuration

About vite, please check Configuration Reference - vite.

License


license



MIT License