Pinned post from
May 26, 2023
Late-Night Coding Made Simple with AI
Late at night, from the comfort of my bed, I had an idea. I wanted to reduce the repetitive task of writing the same code again and again. The solution was clear: create a boilerplate. A boilerplate is a block of reusable code, often used as a starting point for many projects. My goal was to create a Node.js Express.js server with Open...
Read more
Read more
December 14, 2022
CSS in JS ftw
Using styled components in react can be a great way to add styling to your web application. The benefits of using CSS in JS include increased modularity, improved maintainability, and greater reusability of styles. One of the biggest benefits of using styled components is that they allow you to write your CSS directly in your JavaScrip...
Read more
Read more
May 30, 2022
Mock a React Component Library with Jest
Create __mocks__ directory adjacent to node_modules with an empty react-bootstrap.js file node_modules/ __mocks__/ react-bootstrap.js src/ app.js index.html using jest.mock, mock the functionality of the component App.test.js /** @jest-environment jsdom */ import React from 'react'; import '@testing-library/jest-dom'; import { render }...
Read more
Read more