Skip to content

Commit 07d74e9

Browse files
committed
Added constructor method to the <TextWidget> class, to be used for initializing the widget state.
1 parent 7ac6290 commit 07d74e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

webpack_in/entry.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ class HelloWidget extends React.Component {
4545
}
4646

4747
class TextWidget extends React.Component {
48+
constructor(props) {
49+
super(props);
50+
}
51+
4852
render() {
4953
return (
5054
<div style={ objStyleCommon }>

0 commit comments

Comments
 (0)