-
Notifications
You must be signed in to change notification settings - Fork 1
Frontend
These recommendations apply to building interactive web applications. For how we build websites, see ScottyLabs website repo. One notable difference is that the website uses CSS Modules instead of Tailwind CSS for better organization of styles.
Use Corgi (ScottyLabs Component Library) instead of Shadcn when the Figma design uses the ScottyLab UI Kit.
TanStack Query: an example using TanStack Query with TanStack Router
Use Local Storage for states you want to persist across browser sessions, such as themes.
Use TanStack search params with Zod adaptor for storing states you want to persists on a browser refresh.
Keep it simple with useState until you prop drilled so much that you are sure you need a state library: Zustand
Use an env.ts file to validate environment secrets with Zod.
React Compiler: automatically optimizes your React application by handling memoization for you