-1

I'm not using CDN links. I'm using imports instead so I don't know if it really works without CDN links. here is my app.js file it's so simple but it's not working.

import React from 'react';
import * as ReactDOM from 'react-dom';

const root = document.getElementById('root');



ReactDOM.render(<h1>React</h1>, root);

1 Answers1

0

Try Changing

import * as ReactDOM from 'react-dom';

To:

import ReactDOM from 'react-dom'
Uzzam Altaf
  • 303
  • 4
  • 8