Nanotechnology Promises Much
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@ygyg/rc-channel

1.0.2 • Public • Published

rc-channel

React component for portal-channel(channel-desk).

NPM version [![build status][travis-image]][travis-url] npm download

install

rc-channel

Development

npm install
npm start

Example

npm install @ygyg/rc-channel

Usage

import ProductIntro from 'rc-channel';
import SunCointImg from '../assets/img/suncoint.png';
import YouXuanImg from '../assets/img/icon-sunYX@2x.png';
 
 
const data = {
  retCode: '0000000',
  retDesc: '操作成功!',
  timestamp: '2020-06-19 10:06:09.282',
  rspBody: {
    ...
  },
};
const ImgConfig = {
  SunCointImg,
  YouXuanImg,
};
 
React.render(<ProductIntro data={data.rspBody} {...ImgConfig} />, mountNode);

API

Properties

License

rc-channel is released under the MIT license.

Install

npm i @ygyg/rc-channel

DownloadsWeekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

244 kB

Total Files

73

Last publish

Collaborators

  • avatar