Skip to content


Browse files Browse the repository at this point in the history
Extracted the logic for rendering 'Hello! I'm a React app!!' into a s…
…eparate new widget <HelloWidget>.
  • Loading branch information
maratbn committed Aug 5, 2018
1 parent 3d757d9 commit 8e3ac6c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion webpack_in/entry.jsx
Expand Up @@ -10,4 +10,10 @@ import React from 'react';
import ReactDOM from 'react-dom';

ReactDOM.render(<div>Hello! I'm a React app!!</div>, document.getElementById('react-app'));
class HelloWidget extends React.Component {
render() {
return (<div>Hello! I'm a React app!!</div>);

ReactDOM.render(<HelloWidget />, document.getElementById('react-app'));

0 comments on commit 8e3ac6c

Please sign in to comment.