i need to add a several scripts from index.html to index.js page. Although when try to add them i receive dom errors.
ReactDOM.render(
<React.StrictMode>
<App />
<script>
var appLocation = './';
var boilerplatePath = '';
var systemJsMap = {
'@ag-grid-community/all-modules/dist/styles/ag-grid.css':
'https://unpkg.com/@ag-grid-community/all-modules@24.0.0/dist/styles/ag-grid.css',
},
</script>
<script src ="https://unpkg.com/systemjs@0.19.39/dist/system.src.js">
</script>
<script src="systemjs.config.js"></script>
</React.StrictMode>,
document.getElementById('root')
);
Does anyone knows is it possible to add those scripts to index.js ? Or i need to somehow modify the structure of scripts ?