When I run my ReactJS, I get this error:
Unhandled Rejection (Error): Material-UI: react@16.3.0 or greater is required.
▶ 15 stack frames were collapsed.
How do I fix this?
When I run my ReactJS, I get this error:
Unhandled Rejection (Error): Material-UI: react@16.3.0 or greater is required.
▶ 15 stack frames were collapsed.
How do I fix this?
The Material-UI version which you are using requires react version greater than 16.3.0 do you need to install the latest React
To install go to the root folder where package.json is available, execute below command
npm i -s react
The above command will install React latest version which will fix the issue for you
Or
npm i -s react@16.3.0
The above command will install React version 16.3.0 which will fix the issue for you
Make sure you update react-dom as well when you update react