Encountered a blank screen after running my Server.
Everything had been rendered correctly, but none of the components was visible on the browser.
- Check the render method in the ReactDOM. The likely error is wrong method of importing the ReactDOM
ReactDOM is a default export from the 'react-dom' module
Your code editor might have autocompleted the import by putting curly braces around ReactDOM ie import {ReactDOM} from 'react-dom'
rather than import ReactDOM from 'react-dom'
- Having it in curly braces treats ReactDOM as a named import and not a default one.
Top comments (0)