Skip to content

Commit 7fbb11e

Browse files
committed
Added logic to initialize the React 'state' of <ColorSelector> to a color with the RGB components of 255, 255, 255.
1 parent b0c49bf commit 7fbb11e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

webpack_in/entry.jsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,18 @@ ColorComponentEntry.propTypes = {
250250
};
251251

252252
class ColorSelector extends React.Component {
253+
constructor(props) {
254+
super(props);
255+
256+
this.state = {
257+
color: {
258+
r: 255,
259+
g: 255,
260+
b: 255
261+
}
262+
};
263+
}
264+
253265
render() {
254266
return (
255267
<div style={ objStyleCommon }>

0 commit comments

Comments
 (0)