React & Next.js
All gettemplate templates are built with React and optimized for Next.js.
Why Next.js?
- β‘ Fast page loads with SSR/SSG
- π File-based routing
- πΌοΈ Image optimization
- π§ API routes built-in
- π Easy deployment
Version Requirements
{
"react": "^18.0.0",
"react-dom": "^18.0.0",
"next": "^14.0.0"
}App Router vs Pages Router
Our templates work with both:
Pages Router (Traditional)
pages/
βββ index.js
βββ about.js
βββ _app.jsApp Router (New)
app/
βββ page.js
βββ about/page.js
βββ layout.jsBest Practices
1.Use Server Components where possible
2.Implement proper loading states
3.Optimize images with next/image
4.Use dynamic imports for heavy components
