What's New in Next.js 16
Next.js 16 brings significant changes that improve both developer experience and application performance:
Turbopack as Default
Turbopack is now the default bundler, offering near-instant hot module replacement:
No configuration needed - it's automatic!
npm run dev
Cache Components with "use cache"
The new directive makes caching explicit and flexible:
'use cache'export default async function ProductPage({ id }) {
const product = await fetchProduct(id);
return ;
}
Migrating to Tailwind CSS v4
Tailwind v4 introduces a CSS-first configuration approach:
Before (tailwind.config.js)
module.exports = {
theme: {
extend: {
colors: {
brand: '#3b82f6'
}
}
}
}
After (globals.css)
@import 'tailwindcss';@theme inline {
--color-brand: #3b82f6;
--font-sans: 'Inter', sans-serif;
}
Step-by-Step Migration
npm install next@16 tailwindcss@4
Common Gotchas
@applyworks differently in v4- Custom plugins need updates
- Some deprecated utilities are removed
Conclusion
The migration takes effort but the improved DX and performance are worth it. Start with a fresh branch and migrate incrementally.