Month: August 2023

Fastify Route, Handler, Service Codes

Fastify Route code server.get( "/googlelink/:id", { schema: { params: $Sref("idParamsSchema"), }, }, fetchGoogleUrlBySurveyIdHandler ); Fastify sample controller code export async function fetchGoogleUrlBySurveyIdHandler( request: FastifyRequest<{... Read more »

React TypeScript CheatSheet

Typescript cheat sheet for react functional components. useRef const divRef = useRef<HTMLDivElement>(null); setState const SkillSection = ({setScrollDuration} : {setScrollDuration: (value: number) => void}) =>... Read more »