Skip to content

Commit 888561f

Browse files
VadimZvfKikobeats
authored andcommitted
🐛 Removing spread operator
We were trying to spead a null value
1 parent be65f2f commit 888561f

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

demo/src/js/index.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@ import React from 'react';
22
import ReactJsonDemo from './components/Demo';
33

44
//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">
108
<ReactJsonDemo />
11-
</div>);
12-
}
13-
9+
</div>
10+
);
1411
}

0 commit comments

Comments
 (0)