File tree Expand file tree Collapse file tree 1 file changed +26
-22
lines changed
Expand file tree Collapse file tree 1 file changed +26
-22
lines changed Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments