Skip to content

Commit af01c98

Browse files
homework_1
0 parents  commit af01c98

File tree

14 files changed

+14318
-0
lines changed

14 files changed

+14318
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
.idea/

classwork/lesson-1/.babelrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"presets": [
3+
"@babel/preset-react"
4+
]
5+
}

classwork/lesson-1/index.html

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Class work 1</title>
6+
</head>
7+
<body>
8+
<div id="app"></div>
9+
<script src="bundle.js"></script>
10+
<!--<script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script>-->
11+
<!--<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>-->
12+
<!--<script>-->
13+
<!--// const moundNode = document.getElementById('app');-->
14+
<!--//-->
15+
<!--// const h1 = React.createElement(-->
16+
<!--// 'h1',-->
17+
<!--// {helloworld: 'yes'},-->
18+
<!--// "hello world"-->
19+
<!--// );-->
20+
<!--// const header = React.createElement(-->
21+
<!--// "header",-->
22+
<!--// null,-->
23+
<!--// h1,-->
24+
<!--// React.createElement(-->
25+
<!--// "div",-->
26+
<!--// {className: 'qwerty'},-->
27+
<!--// 'App title',-->
28+
<!--// ),-->
29+
<!--// );-->
30+
<!--//-->
31+
<!--// let createReactElem = function(caption) {-->
32+
<!--// let elem = React.createElement(-->
33+
<!--// 'h2',-->
34+
<!--// null,-->
35+
<!--// caption,-->
36+
<!--// )-->
37+
<!--// return elem;-->
38+
<!--// }-->
39+
<!--//-->
40+
<!--// ReactDOM.render(createReactElem('h2'), moundNode);-->
41+
<!--// //ReactDOM.render(header, moundNode);-->
42+
43+
<!--</script>-->
44+
45+
</body>
46+
</html>

0 commit comments

Comments
 (0)