How I Built My Site
I used React in conjunction with Next.js, a React framework, as it provides code splitting and server-side rendering for React components, improving user experience and search engine optimisation (SEO). Next.js also supports client-side routing, which makes page transitions faster.
/snippets page, data is fetched from the GitHub Gists REST API using Next.js incremental static regeneration, which generates a static version of the page at build time, and regenerates the page in the background after a certain amount of time (in my case I've set it to every 60 seconds). This means that the page is always blazing fast because it is static HTML, but still has accurate data.