React: bad habitsBad habits, we all have them! In this article, I will confess some of my own coding bad habits and bad habits I have encountered in React code over the past years, working as a React dev. 1. Create derived state using a side effect This is something ...4 min read·brense.hashnode.devMar 21, 2023
Vite dev server: adding middlewareWhile working on apps that will be deployed to Vercel, I have run into this situation several times, where I wanted to be able to start my api middleware together with the Vite dev server for local development. Normally you would run the api middlewa...2 min read·brense.hashnode.devMar 20, 2023
Mapping Records to arraysI needed this functionality to parse a configuration regardless of whether it was supplied as an array or a Record. This function converts the Record into an array of the same type: function mapRecordToArray<T, R extends Omit<T, K>, K extends keyof T...1 min read·brense.hashnode.devOct 6, 2022
React: What is composition, and why is it importantWithout composition, the complexity of our components will grow exponentially over-time, which hurts maintainability.3 min read·brense.hashnode.devAug 30, 2022