create-react-app — React Technical Interview Questions & Answers

create-react-app

create-react-app

  • create-react-app (CRA) was the official beginner tool: npx create-react-app my-app, webpack already wired, npm start. A whole generation learned React this way. That history is fair to mention.
  • CRA is not what you pick for a new app now. Slow boot, outdated defaults, no official maintenance path. Say: ‘I know CRA. I would scaffold with Vite (or Next) today.’ That sounds like someone who reads release notes, not a 2018 PDF.
  • create-react-app — output: old CRA command, new Vite command, why. Don’t start a 2026 project on CRA.

Technical Interview Tip: Know CRA. Don’t start new apps on it.

Code Examples for create-react-app

Example

// CRA vs Vite
console.log("old: npx create-react-app shop");
console.log("now: npm create vite@latest shop -- --template react");
console.log("why : CRA is unmaintained for new apps");

create-react-app — output: old CRA command, new Vite command, why. Don’t start a 2026 project on CRA.

How to Explain create-react-app to an Interviewer

Explain create-react-app as if you are teaching a junior — definition, then one tiny UI.

Old official scaffolder. webpack + npm start.

What does the example show on screen (or print), and what does that prove?

create-react-app — output: old CRA command, new Vite command, why

What mistake do freshers make with create-react-app?

Vite / Next instead.