Skip to content

Commit cd1263f

Browse files
chore(examples): tidy script-tag.html with prettier
1 parent 679a694 commit cd1263f

File tree

1 file changed

+26
-22
lines changed

1 file changed

+26
-22
lines changed

examples/script-tag.html

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,32 @@
11
<!DOCTYPE html>
22
<html>
3-
<head>
4-
<meta charset="utf-8" />
5-
<title>Load with Script Tag</title>
6-
</head>
7-
<body style="padding: 50px">
8-
<div id="root"></div>
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>Load with Script Tag</title>
6+
</head>
7+
<body style="padding: 50px;">
8+
<div id="root"></div>
99

10-
<!-- HTMLReactParser depends on React -->
11-
<script src="https://unpkg.com/react@16/umd/react.production.min.js"></script>
12-
<script src="../dist/html-react-parser.min.js"></script>
10+
<!-- React -->
11+
<script src="https://unpkg.com/react@16/umd/react.production.min.js"></script>
12+
<!-- <script src="https://unpkg.com/react@15/dist/react.min.js"></script> -->
1313

14-
<!-- ReactDOM -->
15-
<script src="https://unpkg.com/react-dom@16/umd/react-dom.production.min.js"></script>
14+
<!-- HTMLReactParser -->
15+
<script src="../dist/html-react-parser.min.js"></script>
1616

17-
<script>
18-
ReactDOM.render(
19-
HTMLReactParser(
20-
'<h2 style="font-family:\'Lucida Grande\';">' +
21-
'HTMLReactParser loaded with script tag' +
22-
'<\/h2>'
23-
),
24-
document.getElementById('root')
25-
);
26-
</script>
27-
</body>
17+
<!-- ReactDOM -->
18+
<script src="https://unpkg.com/react-dom@16/umd/react-dom.production.min.js"></script>
19+
<!-- <script src="https://unpkg.com/react-dom@15/dist/react-dom.min.js"></script> -->
20+
21+
<script>
22+
ReactDOM.render(
23+
HTMLReactParser(
24+
'<h2 style="font-family: \'Lucida Grande\', sans-serif;">' +
25+
'HTMLReactParser loaded with script tag' +
26+
'<\/h2>'
27+
),
28+
document.getElementById('root')
29+
);
30+
</script>
31+
</body>
2832
</html>

0 commit comments

Comments
 (0)