File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 1313 < script >
1414 requirejs . config ( {
1515 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' ,
1717 'react' : 'https://unpkg.com/react@latest/dist/react.min' ,
1818 'react-dom' : 'https://unpkg.com/react-dom@latest/dist/react-dom.min'
1919 }
Original file line number Diff line number Diff line change 77 < body style ="padding: 50px ">
88 < div id ="root "> </ div >
99
10- <!-- HTMLReactParser depends on React -->
10+ <!-- HTMLReactParser depends on React and ReactDOM -->
1111 < 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 -->
1512 < 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+
1615 < script >
1716 ReactDOM . render (
1817 HTMLReactParser (
Original file line number Diff line number Diff line change 4545 "react" : " >=15.4" ,
4646 "react-dom" : " >=15.4"
4747 },
48- "browser" : {
49- "htmlparser2/lib/Parser" : false ,
50- "domhandler" : false
51- },
5248 "license" : " MIT"
5349}
You can’t perform that action at this time.
0 commit comments