From 7fbb11e00b3118410eb3b027b3ed0798b867de0b Mon Sep 17 00:00:00 2001 From: Marat Nepomnyashy Date: Sun, 1 Jul 2018 16:14:40 -0700 Subject: [PATCH] Added logic to initialize the React 'state' of to a color with the RGB components of 255, 255, 255. --- webpack_in/entry.jsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/webpack_in/entry.jsx b/webpack_in/entry.jsx index 44b2057..fed2ad0 100644 --- a/webpack_in/entry.jsx +++ b/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 (