Skip to content

Commit

Permalink
Merge pull request #35 from VadimZvf/VadimZvf/fixing-demo-build
Browse files Browse the repository at this point in the history
🔧 Fixing the demo build
  • Loading branch information
Kikobeats authored Sep 22, 2024
2 parents be65f2f + 45ea957 commit 3ee7516
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 16 deletions.
4 changes: 2 additions & 2 deletions demo/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/3.4.0/es5-shim.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/3.4.0/es5-sham.js"></script>
<![endif]-->
<script src="https://unpkg.com/react@15.6.1/dist/react.min.js"></script>
<script src="https://unpkg.com/react-dom@15/dist/react-dom.min.js"></script>
<script crossorigin src="https://unpkg.com/react@16.14.0/umd/react.development.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@16.14.0/umd/react-dom.development.js"></script>
<style>
body {margin:0px;}
#references {
Expand Down
12 changes: 6 additions & 6 deletions demo/dist/main.js

Large diffs are not rendered by default.

13 changes: 5 additions & 8 deletions demo/src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@ import React from 'react';
import ReactJsonDemo from './components/Demo';

//index entrypoint component
export default class extends React.PureComponent {

render() {
const {...props} = this.state;
return (<div class="mac-react" >
export default function Demo() {
return (
<div class="mac-react">
<ReactJsonDemo />
</div>);
}

</div>
);
}

0 comments on commit 3ee7516

Please sign in to comment.