mirror of
https://github.com/ianramzy/decentralized-video-chat.git
synced 2024-11-16 23:29:20 +08:00
Clean up
This commit is contained in:
parent
da8ee42120
commit
8cb4eac9d0
4
public/MediumPost.html
vendored
4
public/MediumPost.html
vendored
@ -7,7 +7,7 @@
|
||||
<body>
|
||||
|
||||
<!-- We will put our React component inside this div. -->
|
||||
<div id="medium_blog_container"></div>
|
||||
<div id="react-container"></div>
|
||||
|
||||
<!-- Load React. -->
|
||||
<!-- Note: when deploying, replace "development.js" with "production.min.js". -->
|
||||
@ -15,7 +15,7 @@
|
||||
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js" crossorigin></script>
|
||||
|
||||
<!-- Load our React component. -->
|
||||
<script src="MediumPost/index.js"></script>
|
||||
<script src="react/MediumPost/index.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -53,4 +53,5 @@ var MediumPost = function MediumPost() {
|
||||
);
|
||||
};
|
||||
|
||||
var domContainer = document.querySelector('#medium_blog_container');ReactDOM.render(React.createElement(MediumPost, null), domContainer);
|
||||
var domContainer = document.getElementById('react-container');
|
||||
ReactDOM.render(React.createElement(MediumPost, null), domContainer);
|
@ -37,4 +37,5 @@ const MediumPost = () => {
|
||||
);
|
||||
}
|
||||
|
||||
const domContainer = document.querySelector('#medium_blog_container');ReactDOM.render(<MediumPost/>, domContainer);
|
||||
const domContainer = document.getElementById('react-container');
|
||||
ReactDOM.render(<MediumPost/>, domContainer);
|
Loading…
Reference in New Issue
Block a user