JavaScript

React vs Vanilla JavaScript: When You Actually Need a Framework

By Tobi Arowosegbe · Frontend developer, Lagos · Updated August 2026

React gets reached for by default now, even for projects that don't need it. That's not free — it adds build tooling, bundle size, and a learning curve. Here's how to actually decide.

When plain JavaScript is the right call

When React genuinely earns its complexity

The honest cost of defaulting to React

A React app for a five-page business site typically means a build step, a larger JavaScript bundle sent to every visitor, and slower initial load compared to a well-built plain HTML/CSS/JS site — a real cost on the mobile networks most Nigerian visitors use. If the interactivity you actually need is a mobile menu and a contact form, that overhead buys you nothing.

A quick test

Ask: does this page need to track and react to changing state across multiple interconnected components? If yes, React is solving a real problem for you. If the honest answer is "not really, it's mostly content with a bit of interactivity," plain JavaScript will be faster to build, faster to load, and simpler to maintain.

Not sure whether your next project needs React or would be better and faster as plain JavaScript? I'll give you a straight answer.

Ask me directly