Skip to main content

Command Palette

Search for a command to run...

From Soil to Garden: How Next.js Grew from React

Updated
3 min read
From Soil to Garden: How Next.js Grew from React

When you start gardening, the first thing you need is soil.
That’s what React is — the soil where you can plant your UI components.

React gave developers the flexibility to grow anything: buttons, forms, and entire applications. But just like raw soil, React didn’t come with pathways, irrigation, or a plan. You had to bring in your own tools (like React Router for navigation, Axios for data fetching, Webpack for bundling, etc.).

That worked fine for small pots. But when your garden grew bigger, managing it became exhausting.


Enter Next.js: The Garden Around the Soil

Next.js arrived as a gardener’s dream community garden built on React’s soil. It didn’t replace React; it simply added everything you needed to actually make your garden flourish:

  • File-based routing → Instead of manually laying stepping stones (React Router), each file in pages/ is already a path through the garden.

  • Pre-rendering (SSG/SSR) → Some plants are grown before visitors arrive (Static Generation), others are watered fresh daily (Server-side Rendering).

  • API Routes → Your own compost bin for nutrients — no need for a separate backend for small tasks.

  • Image optimization & performance tweaks → Automatic irrigation, so your garden doesn’t dry out or overflow.


Why Do We Need Next.js?

React alone renders pages on the client side, meaning the browser receives minimal HTML and then builds everything using JavaScript. This leads to three challenges: SEO issues (search engines can’t always see your content), slower performance (large bundles delay first render), and extra setup work (you need separate tools for routing, SSR, and optimization). Next.js solves all of this by providing server-side rendering, static generation, file-based routing, built-in API routes, and performance optimizations out of the box. In other words, it takes React’s flexibility and turns it into a production-ready framework that’s fast, SEO-friendly, and scalable.

React vs Next.js in Nature Terms

FeatureReact = Soil OnlyNext.js = Garden
RoutingNeeds tools (React Router)Built-in file-based paths
RenderingClient-side only (seeds sprout when the visitor arrives)Choose: Static, Server-side, or Client-side
SEOPoor (plants hidden under soil until JS runs)Great (plants visible right away)
API SupportNeeds a separate backendHas a compost bin (API routes)
DeploymentManual setupOne-click hosting on Vercel

Why This Matters

If React is where you experiment with planting seeds, then Next.js is where you build a full, flourishing garden that visitors can walk through easily.

React gave us the freedom to grow.
Next.js gave us the structure to scale.

Just like soil without sunlight can’t produce much, React without Next.js often struggles with SEO, performance, and routing. But when combined, they create a thriving ecosystem — the digital version of a lush green garden.


So the next time you open a Next.js project, think of it like stepping into a well-prepared garden. The soil (React) is still there beneath your feet, but the pathways, irrigation, and compost bins (Next.js) are what make it bloom beautifully.

Do you want to learn more about these pathways, irrigation, or the bins? Let’s grow into this garden together! We will delve more into NextJS in our blog!