Mocking modules with jest and typescript
Published on Thu Dec 10 2020Since it took me some time to understand the behaviour and the jest docs don't tell much about it, I wanted to write down how to mock modules with jest and especially update the return values of module functions across your tests.
The new old school
Published on Wed Oct 14 2020My blog is finally online again. This time as a statically generated page. Here is how I made it.
Updates about react hook router
Published on Tue Apr 30 2019It's been about a month, since I released my initial version of hookrouter. Lots of things happened since then.
Modern and clean routing with hooks
Published on Thu Mar 21 2019A quick experiment about using hooks for routing in a react app turned out to be very flexible and powerful.
Create a react component as npm module
Published on Wed Mar 06 2019There are a lot of guides out there that advise you to use webpack to wrap up your components before publishing them to npm. This is absolutely not necessary. I would even consider it bad practice. Its much easier without webpack, too.