Code Snippets. React, TypeScript, Node.js & more
Keeping that odd snippet for future reference.
Slowly updating and adding snippets
Adding delay in DEV requests with axios | Slowing down requests, and making DEV env feel more natural | AxiosTypeScriptDev Environment | View | |
camelCase model properties in AdonisJS | Serializing AdonisJS models to camelCase globally | AdonisJSTypeScriptORMNaming Strategy | View | |
Cloudinary image as blur hash | Generating blur hash from Cloudinary images for my covers | TypeScriptImage Processing | View | |
Domain Model with Zod & FP-TS | One-stop-shop for all our domain needs | FP-TSTypeScript | View | |
FP-TS partition | Partition a collection using FP-TS | FP-TSTypeScript | View | |
FP-TS ReaderTaskEither | Quick look on how to use ReaderTaskEither | FP-TSTypeScript | View | |
Nominal types | Using nominal types to create type-safe identifiers | TypeScript | View | |
Rate limit in NestJS | Using request rate limit | NestJSExpressRate LimitingMiddleware | View | |
useCopy | React hook for clipboard copy | ReactReact Hooks | View | |
useDebounce | React hook for debouncing value changes | ReactReact Hooks | View | |
useNavigatorOnline | React hook to detect when your browser is online/offline | ReactReact Hooks | View | |
useObservable | React hook with useSyncExternalStore to subscribe to an observable | ReactReact Hooks | View | |
usePrevious | React hook to keep previous value | ReactReact Hooks | View |