Many moons ago when I started learning algorithms, I had just learned recursion and was feeling like a Jedi. You know what they say?: “if all you have is a hammer, everything looks like a nail”. I was trying to solve every task imaginable with some form of recursion. Turns out it was a terrible idea. I got a rude awakening when I tried to solve a long sequence of Fibonacci series with Recursion, my computer just couldn’t handle it.
This is the second part of the series in learning React Hooks and the Context API. In the first part we learn the basics of useState, built the first parts of the Recipe Search application. The full code can be found on github
This is a beginner tutorial in understanding React Hooks and the Context API. In reality, this is more of an attempt to explain these concepts to my self and to interested readers. This will be in two parts with this first part focusing on the basics of hooks. The other part will hopefully focus more on more advanced use cases and the Context API. We’ll implement the search functionality and convert to using the Context API for managing states and avoiding props drilling
ES6 Module system 😃 ES6 modules are one of the more critically important concepts you will come across in every React program. I will not delve in-depth as to why the module patterns is important. You can read more about that here, here and here. Instead I will provide a quick overview of what they are and how to quickly get started with them.