File tree 3 files changed +4
-9
lines changed
3 files changed +4
-9
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 (
Original file line number Diff line number Diff line change 45
45
"react" : " >=15.4" ,
46
46
"react-dom" : " >=15.4"
47
47
},
48
- "browser" : {
49
- "htmlparser2/lib/Parser" : false ,
50
- "domhandler" : false
51
- },
52
48
"license" : " MIT"
53
49
}
You can’t perform that action at this time.
0 commit comments