Understanding the differences between the three types of npm dependencies — If you ever dealt with npm, you must have noticed that package.json accepts different types of dependencies. Take a look at the following example: {
"name": "my-app",
"version": "1.0.0",
"description": "Sample project",
"dependencies": {
"lodash": "4.17.21"
},
"devDependencies": {
"jest": "^27.0.6",
"eslint": "8.43.0"
},
"peerDependencies": {
"react": "^18.0.0"
}
}