_reactDom2.default.render is not a function
Update react and react-dom to "^15.2.1" works for me. I hope it will help you.
Initially, I was doing this.
import React from 'react-dom';
import ReactDom from 'react-dom';
And soon I realized what I was doing wrong and updated the above statements as follows.
import React from 'react';
import ReactDom from 'react-dom';
Hope it helps.
You can change something in your Maincontainner
component.
- Add it top:
import ReactDOM from 'react-dom';
- Change
render
toReactDOM.render