Skip to content

Commit

Permalink
Added logic to initialize the React 'state' of <ColorSelector> to a c…
Browse files Browse the repository at this point in the history
…olor with the RGB components of 255, 255, 255.
  • Loading branch information
maratbn committed Aug 5, 2018
1 parent b0c49bf commit 7fbb11e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions webpack_in/entry.jsx
Expand Up @@ -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 }>
Expand Down

0 comments on commit 7fbb11e

Please sign in to comment.