-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
14 lines (11 loc) · 799 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const parent=React.createElement('div',{id:'parent'},
[React.createElement('div',{id:'child1'},
[React.createElement('h1',{},"i am h1"),
React.createElement('h2',{},"i am h2")]),
React.createElement('div',{id:'child2'},
[React.createElement('h1',{},"i am h1"),
React.createElement('h2',{},"i am h2")])
])
const heading=React.createElement("h1",{id:'heading'},"Hello World from React");
const root=ReactDOM.createRoot(document.getElementById('root'));
root.render(parent);