Simon Karanja
Aspiring comedian and a lover of anything with .js extension

Testing Node.js, Express with Supertest & Jest testing framework.

With a multitude of testing framework available for JavaScript and Node.js in specific, it can quickly become overwhelming when deciding which to choose. For the seasoned, the choices usually narrows down to Mocha paired with assertion library like chai. Although Mocha can also be used for testing on the browser…

State in functional components

React hooks is a god’s sent feature that was introduced in React 16.8. In old days, if your component did not handle any local state, then you would normally write it as a stateless functional component. Simple and elegant. Now the problem came if you decided to introduce state to…

Simon Karanja

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store