import React from 'react' import { BlockPicker } from 'react-color' export default class extends React.Component { constructor() { super() this.state = { isVisible: false, bgcolor: '#565656' } this.toggle = this.toggle.bind(this) this.handlePickColor = this.handlePickColor.bind(this) } toggle() { this.setState({ isVisible: !this.state.isVisible }) } handlePickColor(color) { this.setState({ bgcolor: color.hex }) } render() { return (
BG
) } }