React vs DevDependencies in package.json

📘 𝐑𝐞𝐚𝐜𝐭𝐉𝐒 𝐋𝐞𝐚𝐫𝐧𝐢𝐧𝐠 𝐉𝐨𝐮𝐫𝐧𝐞𝐲 — 𝐃𝐚𝐲 2 - 𝑷𝒂𝒓𝒕 1 📦 𝐃𝐞𝐩𝐞𝐧𝐝𝐞𝐧𝐜𝐢𝐞𝐬 𝐯𝐬 𝐃𝐞𝐯𝐃𝐞𝐩𝐞𝐧𝐝𝐞𝐧𝐜𝐢𝐞𝐬 𝐢𝐧 𝐩𝐚𝐜𝐤𝐚𝐠𝐞.𝐣𝐬𝐨𝐧 — 𝐖𝐡𝐚𝐭’𝐬 𝐭𝐡𝐞 𝐃𝐢𝐟𝐟𝐞𝐫𝐞𝐧𝐜𝐞? If you're learning JavaScript, React, or Node.js, you’ll often see two sections inside package.json: 🔵 1️⃣ 𝐝𝐞𝐩𝐞𝐧𝐝𝐞𝐧𝐜𝐢𝐞𝐬 These are the packages your application needs to run in production. If these are removed, your app won’t work. ✔ React ✔ Axios ✔ Express ✔ Redux These get installed every time someone runs: npm install 🟢 2️⃣ 𝐃𝐞𝐯𝐃𝐞𝐩𝐞𝐧𝐝𝐞𝐧𝐜𝐢𝐞𝐬 These are used only during development, not needed when your app is live. ✔ Webpack ✔ Babel ✔ ESLint ✔ Prettier ✔ Jest / Cypress 𝐈𝐧𝐬𝐭𝐚𝐥𝐥𝐞𝐝 𝐮𝐬𝐢𝐧𝐠: 𝐧𝐩𝐦 𝐢𝐧𝐬𝐭𝐚𝐥𝐥 --𝐬𝐚𝐯𝐞-𝐝𝐞𝐯 𝐨𝐫 𝐧𝐩𝐦 𝐢 -𝐃 Understanding this small difference helps you keep your project clean, optimized, and production-ready. 🚀 #ReactJS #JavaScript #FrontendDevelopment #LearningInPublic #Upskilling #100DaysOfCode #FrontendDeveloper #WebDevelopment #Technology #Angular #AngularDeveloper #Upskill #Motivation #Interviewpreparation #Karanoza

To view or add a comment, sign in

Explore content categories