It depends on the company (some specify) and the complexity. Vanilla JS for simple components (shows fundamentals). React for complex apps (faster state management). Choose what you are fastest with in 90 minutes.
Machine Coding Round: Vanilla JS vs React
Should I use vanilla JS or React in the machine coding round?
The answer
More FAQs in Machine Coding Round: Vanilla JS vs React
Some do, some do not. Always ask the interviewer before starting. If they say vanilla JS only, follow instructions. If they allow React, use it for complex UIs.
Shows strong fundamentals (DOM manipulation, event handling, state management without a library), no build step needed, faster to start, and some companies prefer it to see raw JS skills.
Use a CDN setup: include React, ReactDOM, and Babel from CDN in your HTML. Write your React code in a script tag with type='text/babel'. This avoids a build step and lets you start coding immediately.
Still have questions?
Browse all our FAQs or reach out to our support team
Want to upskill yourself?
Your learning library
Small steps. Big possibilities.
Find your next course. Build something great.