hlzsreactlibrarydemo
v1.1.7
Published
>
Downloads
6
Readme
hlzsreactlibrarydemo
Install
npm install --save hlzsreactlibrarydemo
Usage
import React, { Component } from "react";
import ExampleComponent from "hlzsreactlibrarydemo";
import config from "./config";
export default class App extends Component {
render() {
return (
<div>
<ExampleComponent config={config} />
</div>
);
}
}
config
github:https://github.com/chaiyongsheng0/hlzsreactlibrarydemo-config.git
USE:
src/
index.js/
config.js/
config/
config.js
- text:标题
- API_URL_BASE:服务器地址
- BOT_NAME:机器人名字
- Code [Object]
- type:类型 <---①
- code:代码
- answertype: type--->① 对应 type 类型的代码会被引入,覆盖组件中的 Answer 组件
License
MIT © chaiyongsheng0