File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 13
13
< script >
14
14
requirejs . config ( {
15
15
paths : {
16
- 'html-react-parser' : 'https://unpkg.com/html-react-parser@latest /dist/html-react-parser.min' ,
16
+ 'html-react-parser' : '.. /dist/html-react-parser.min' ,
17
17
'react' : 'https://unpkg.com/react@latest/dist/react.min' ,
18
18
'react-dom' : 'https://unpkg.com/react-dom@latest/dist/react-dom.min'
19
19
}
Original file line number Diff line number Diff line change 7
7
< body style ="padding: 50px ">
8
8
< div id ="root "> </ div >
9
9
10
- <!-- HTMLReactParser depends on React -->
10
+ <!-- HTMLReactParser depends on React and ReactDOM -->
11
11
< script src ="https://unpkg.com/react@latest/dist/react.min.js "> </ script >
12
- < script src ="https://unpkg.com/html-react-parser@latest/dist/html-react-parser.min.js "> </ script >
13
-
14
- <!-- ReactDOM -->
15
12
< script src ="https://unpkg.com/react-dom@latest/dist/react-dom.min.js "> </ script >
13
+ < script src ="../dist/html-react-parser.min.js "> </ script >
14
+
16
15
< script >
17
16
ReactDOM . render (
18
17
HTMLReactParser (
You can’t perform that action at this time.
0 commit comments