Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

NE-LOAN-FED/NE-Component

Repository files navigation

npm JavaScript Style Guide Travis npm GitHub license

文档

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

功能

  • 开箱即用的移动端基础组件
  • 基于 npm + webpack 开发
  • 支持多种引入方式:ES Module 、umd(不建议使用)

环境

  • React > 16.0.0
  • ReactDOM > 16.0.0

支持环境

  • IE9+ 和现代浏览器

安装

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