I installed reactjs and react-dom like this with package.json
"dependencies": {
"bootstrap": "^v4.1.1",
"popper.js": "^1.14.3",
"react": "^v16.4.1",
"react-dom": "^16.4.1"
}
It downloaded react
folder and react-dom
folder correctly.
Both folders have cjs
and umd
folder and they have a lot of JavaScript files.
For me it's unable to find difference between files in two folders.
Like this:
URL: node_modules/react/umd
react-development.js
react-production.min.js
URL: node_modules/react/cjs
react-development.js
react-production.min.js
almost same with react-dom. It also has cjs
and umd
folder and I don't know which file from which folder should I use to develop a React application or website.
import React from 'react'; import ReactDOM from 'react-dom';
– Larianna