File tree Expand file tree Collapse file tree 3 files changed +13
-16
lines changed Expand file tree Collapse file tree 3 files changed +13
-16
lines changed Original file line number Diff line number Diff line change 20
20
<script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/3.4.0/es5-shim.js"></script>
21
21
<script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/3.4.0/es5-sham.js"></script>
22
22
<![endif]-->
23
- < script src ="https://unpkg.com/react@15.6.1/dist /react.min .js "> </ script >
24
- < script src ="https://unpkg.com/react-dom@15/dist /react-dom.min .js "> </ script >
23
+ < script crossorigin src ="https://unpkg.com/react@16.14.0/umd /react.development .js "> </ script >
24
+ < script crossorigin src ="https://unpkg.com/react-dom@16.14.0/umd /react-dom.development .js "> </ script >
25
25
< style >
26
26
body {margin : 0px ;}
27
27
# references {
Original file line number Diff line number Diff line change @@ -2,13 +2,10 @@ import React from 'react';
2
2
import ReactJsonDemo from './components/Demo' ;
3
3
4
4
//index entrypoint component
5
- export default class extends React . PureComponent {
6
-
7
- render ( ) {
8
- const { ...props } = this . state ;
9
- return ( < div class = "mac-react" >
5
+ export default function Demo ( ) {
6
+ return (
7
+ < div class = "mac-react" >
10
8
< ReactJsonDemo />
11
- </ div > ) ;
12
- }
13
-
9
+ </ div >
10
+ ) ;
14
11
}
You can’t perform that action at this time.
0 commit comments