File tree Expand file tree Collapse file tree 2 files changed +21
-10
lines changed
Expand file tree Collapse file tree 2 files changed +21
-10
lines changed Original file line number Diff line number Diff line change @@ -11,19 +11,10 @@ import React from 'react';
1111import ReactDOM from 'react-dom' ;
1212
1313import ButtonWidget from './button_widget.jsx' ;
14+ import HelloWidget from './hello_widget.jsx' ;
1415import Styles from './styles.es' ;
1516
1617
17- class HelloWidget extends React . Component {
18- render ( ) {
19- return (
20- < div style = { { ...Styles . common , ...Styles . content } } >
21- Hello! I'm a React app!!
22- </ div >
23- ) ;
24- }
25- }
26-
2718class TextWidget extends React . Component {
2819 constructor ( props ) {
2920 super ( props ) ;
Original file line number Diff line number Diff line change 1+ // This file 'hello_widget.jsx' is part of an example for building a multi-widget React front-end
2+ // app step by step as outlined in the tutorial blog at
3+ // http://maratbn.com/blogs/2018/07/02/react-multi-widget/
4+
5+
6+ import React from 'react' ;
7+ import Styles from './styles.es' ;
8+
9+
10+ class HelloWidget extends React . Component {
11+ render ( ) {
12+ return (
13+ < div style = { { ...Styles . common , ...Styles . content } } >
14+ Hello! I'm a React app!!
15+ </ div >
16+ ) ;
17+ }
18+ }
19+
20+ export default HelloWidget ;
You can’t perform that action at this time.
0 commit comments