RBRense Bakkerinbrense.hashnode.dev·Mar 21, 2023 · 4 min readReact: 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 ...00
RBRense Bakkerinbrense.hashnode.dev·Mar 20, 2023 · 2 min readVite 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...00
RBRense Bakkerinbrense.hashnode.dev·Oct 6, 2022 · 1 min readMapping 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...00
RBRense Bakkerinbrense.hashnode.dev·Aug 30, 2022 · 3 min readReact: What is composition, and why is it importantWhat is composition Let me demonstrate with a small example: // no composition <AlertDialog open={true} title="Don't use composition!" /> // with composition <Dialog open={true}> <Title>Use composition!</Title> <Button>Close</Button> </Dialo...00
RBRense Bakkerinbrense.hashnode.dev·Jul 13, 2017 · 2 min readReplacing my home serverThere comes a time when you have to say goodbye to an awesome piece of electronic equipment. After 7 years of loyal service as my home server, my EeeBox was starting to show more and more signs of old age. Besides running incredibly hot even when idl...00