Permalink
Browse files

Extracted the logic for rendering 'Hello! I'm a React app!!' into a s…

…eparate new widget <HelloWidget>.
  • Loading branch information...
maratbn committed Jun 30, 2018
1 parent 3d757d9 commit 8e3ac6c643aa41faac89071d24e169872f93d317
Showing with 7 additions and 1 deletion.
  1. +7 −1 webpack_in/entry.jsx
@@ -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.