Skip to content

Commit 722f75c

Browse files
committed
replaced render with createRoot method to align with react-dom verison
1 parent bbb9cb1 commit 722f75c

File tree

1 file changed

+3
-5
lines changed
  • fixtures/packaging/babel-standalone

1 file changed

+3
-5
lines changed

fixtures/packaging/babel-standalone/dev.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@
55
<script src="https://unpkg.com/babel-standalone@6/babel.js"></script>
66
<div id="container"></div>
77
<script type="text/babel">
8-
ReactDOM.render(
9-
<h1>Hello World!</h1>,
10-
document.getElementById('container')
11-
);
8+
ReactDOM.createRoot( document.getElementById('container')).render(
9+
<h1>Hello World!</h1>)
1210
</script>
1311
</body>
14-
</html>
12+
</html>

0 commit comments

Comments
 (0)