NE-LOAN-FED / NE-Component

A react component library.
https://ne-loan-fed.github.io/NE-Component/
MIT License
28 stars 5 forks source link
component components react react-components

npm JavaScript Style Guide [Travis]() npm GitHub license

文档

https://ne-loan-fed.github.io/NE-Component/#/

功能

环境

支持环境

安装

npm install ne-rc

示例

// 入口文件
import React from "react";
import { render } from "react-dom";
// 引入组件库样式
import "ne-rc/lib/ne.css";
import "./style/app.scss";
// 引入需要的组件
import { Button } from "ne-rc";

render(
  <div>
    <Button />
  </div>,
  mountNode
);

本地开发

  1. clone 项目
git clone git@github.com:NE-LOAN-FED/NE-Component.git
  1. 开发:
// 服务默认会跑在 4000 端口上
npm run demo
  1. 打包
npm run build