Mattia RichettoReact, Kitchen Knives, and Color PatternsI recently refreshed my frontend and React skills and decided to build a small web app. The app of choice has been a “Jean Dubost Laguiole…Nov 22, 2024Nov 22, 2024
Mattia RichettouseReducerWithLocalStorage, yet another custom React hookI’ve built useReducerWithLocalStorage, a React hook that adds local storage support to the useReducer hook.May 1, 2020May 1, 2020
Mattia RichettoMake it run, (try to) make it right. Of React and refactoringI started to work on Tweries in October of 2019. Tweries is an app that breaks down a long paragraph into several tweets of the…Apr 23, 2020Apr 23, 2020
Mattia RichettoConference Call Bingo, functional and imperativeI’ve found a very funny conference call bingo card on Pinterest and I wanted to build a React app based on that to use during my…Apr 14, 2020Apr 14, 2020
Mattia RichettoExpress, req, res, and chainingGiven that Express is my favorite Node.js web application framework, very often I find myself having to unit test handler functions…Apr 16, 2019Apr 16, 2019
Mattia RichettoHow to mock a module that exports a factory function with JestIf you have a module that exports a factory function and you want to mock one or more methods of the object returned by that function…Dec 9, 20181Dec 9, 20181
Mattia RichettoJest unit testing with components that use node-fetchI like very much the Fetch API and I tend to use it as much as possible also with node components.Jul 3, 2017Jul 3, 2017