Permalink
Browse files

Cloned the <HelloWidget> into a new sibling widget <TextWidget> that …

…is intended to allow changing the text.
  • Loading branch information...
maratbn committed Jun 30, 2018
1 parent e942d13 commit 92560c33b2eb1c6e297a79dc21c3aa575338feae
Showing with 19 additions and 1 deletion.
  1. +19 −1 webpack_in/entry.jsx
@@ -22,4 +22,22 @@ class HelloWidget extends React.Component {
}
}
ReactDOM.render(<HelloWidget />, document.getElementById('react-app'));
class TextWidget extends React.Component {
render() {
return (
<div style={{ padding: '1em',
border: 'solid 2px green',
textAlign: 'center' }}>
Some text here....
</div>
);
}
}
ReactDOM.render(
<div>
<HelloWidget />
<TextWidget />
</div>,
document.getElementById('react-app'));

0 comments on commit 92560c3

Please sign in to comment.