Is it a dish? Is it a spice ? It may be, but when it comes to programming it's a very usefull and widespread technique found in functional programming. Let's see what it is and what it can do for you.
We've all encountered at some point code that needs to do some API calls or read from the file system. It's a super bad idea to actually let the code make the real http requests or read from the file system during unit test. Let's see why and how we can get around these kind of issues.
React provides 3 major APIs for creating re-usable components. In this article we show you why you should prefer stateless functional components over the other ones and some best practices around using them efficiently