Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Cloned the <HelloWidget> into a new sibling widget <TextWidget> that …
…is intended to allow changing the text.
  • Loading branch information
maratbn committed Aug 5, 2018
1 parent e942d13 commit 92560c3
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion webpack_in/entry.jsx
Expand Up @@ -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.