import React from 'react';
import ColorPicker from 'melon-colorpicker';
import ReactDOM from 'react-dom';
import './index.styl';
ReactDOM.render(
<ColorPicker
open={open}
top={0}
left={0}
name = "rgbStr"
placeholder = "请选择" />,
document.getElementById('app')
);
-
please check out this first.
-
npm install -S melon-colorpicker
-
bower install -S melon-colorpicker
-
config your
requirejs
/esl
require.config({ paths: { 'melon-colorpicker': 'bower_components/melon-colorpicker/lib/index' } });
check this out
git clone https://github.com/react-melon/melon-colorpicker.git
cd melon-colorpicker
npm install
npm start
open http://localhost:8080/example