1 parent 07d74e9 commit 89ecb68Copy full SHA for 89ecb68
1 file changed
webpack_in/entry.jsx
@@ -47,12 +47,16 @@ class HelloWidget extends React.Component {
47
class TextWidget extends React.Component {
48
constructor(props) {
49
super(props);
50
+
51
+ this.state = {
52
+ text: "Some text here...."
53
+ };
54
}
55
56
render() {
57
return (
58
<div style={ objStyleCommon }>
- <div style={ objStyleContent }>Some text here....</div>
59
+ <div style={ objStyleContent }>{ this.state.text }</div>
60
<ButtonWidget caption="Change text..." />
61
</div>
62
);
0 commit comments