Skip to content

Commit

Permalink
replaced render with createRoot method to align with react-dom verison
Browse files Browse the repository at this point in the history
  • Loading branch information
Biki-das committed Nov 17, 2023
1 parent bbb9cb1 commit 722f75c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions fixtures/packaging/babel-standalone/dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
<script src="https://unpkg.com/babel-standalone@6/babel.js"></script>
<div id="container"></div>
<script type="text/babel">
ReactDOM.render(
<h1>Hello World!</h1>,
document.getElementById('container')
);
ReactDOM.createRoot( document.getElementById('container')).render(
<h1>Hello World!</h1>)
</script>
</body>
</html>
</html>

0 comments on commit 722f75c

Please sign in to comment.