Permalink
Browse files

Added logic to initialize the React 'state' of <ColorSelector> to a c…

…olor with the RGB components of 255, 255, 255.
  • Loading branch information...
maratbn committed Jul 1, 2018
1 parent b0c49bf commit 7fbb11e00b3118410eb3b027b3ed0798b867de0b
Showing with 12 additions and 0 deletions.
  1. +12 −0 webpack_in/entry.jsx
@@ -250,6 +250,18 @@ ColorComponentEntry.propTypes = {
};
class ColorSelector extends React.Component {
constructor(props) {
super(props);
this.state = {
color: {
r: 255,
g: 255,
b: 255
}
};
}
render() {
return (
<div style={ objStyleCommon }>

0 comments on commit 7fbb11e

Please sign in to comment.