Recursion in JavaScript and React ComponentsIntroduction Recursion, in its essence, is a method of problem-solving that employs the solution to be expressed in terms of itself. This means that a function that employs recursion will call upon itself repeatedly until it reaches a specific base c...Dec 12, 2022 · 5 min readblog.astrosaurus.me
Use Preact in Next.js 13Introduction Next.js uses React by default. In this blogpost, I want to replace React with Preact and compare the build differences. Preact is a JavaScript library, considered the lightweight 3kb alternative of React with the same modern API and ECMA...Nov 27, 2022 · 3 min readblog.astrosaurus.me
Testing Next.js Applications with Jest and React Testing LibraryIn this tutorial, we will go through all the steps necessary to perform unit testing in your Next.js Applications. We are going to use React Testing Library and Jest to test our applications. Jest is a JavaScript testing framework designed to ensure ...6KBRSep 11, 2022 · 10 min readblog.astrosaurus.me
Writing a Good Technical ArticleIntroduction I used to write poems and short stories. When I became a developer, I felt the urge to write as well. Although I haven't been very consistent, I have published some technical articles that I'm pleased with. Every developer should value t...1JJul 1, 2022 · 6 min readblog.astrosaurus.me
Lazy Loading Images In Next.jsIntroduction We have all heard this term before. Lazy Loading. What is it anyways? Lazy loading postpones the loading of resources on a page, in this case an image, until they are actually required. Rather than loading these resources as soon as the ...May 27, 2022 · 2 min readblog.astrosaurus.me