render
render copied to clipboard
Opinionated React Template
Opinionated React Template
Render
Opinionated React template setup with modern tooling, here some recommendations if needed
Technologies and tools
- React
- TypeScript
- React Location
- TailwindCSS
- ESLint
- Prettier
- Vite
- PNPM
- Husky
- Commitlint
- Lint-staged
- Vercel
Features
File based routing
- Using
generouted - Vite powered
- Next.js inspired
- Supports
.tsxextensions - Custom app at
src/pages/_app.tsx(optional) - Custom 404 page at
src/pages/404.tsx(optional) - Navigation between routes using React Location's
<Link />component
Conventions
- Index routes
src/pages/index.tsxto/ - Nested routes
src/pages/nested/within.tsxto/nested/within - Dynamic routes
src/pages/dynamic/[timestamp].tsxto/dynamic/:timestamp - Catch all routes
src/pages/catch/[...all].tsxto/catch/* - None matching routes
src/pages/404.tsx
Authentication example
- Authentication context
- Routes guard
Custom hooks
useQueryhook
Usage
By generating from this template then/or cloning locally
Commands
# install dependencies
pnpm install
# start development server · http://localhost:3000
pnpm dev
# build client for production
pnpm build
# start production preview · http://localhost:5000
pnpm start
Recommendations
Frameworks
Languages
Components
Build tools
Server state
Data fetching
Global state
Animation
License
MIT