In this post, I am going to extensively talk about the useState react hook. Some of the other popular hooks are useEffect, useReducer, useRef, createContext, setContext and custom hooks.
useState hook returns an array with two values [state, function]
I am about to share with you how I built a simple application to create data base, api calls, established a middleware and a front end to interact. All this from the scratch using a set of trending technologies.
When I started this project, the first thing which I did…
var word = [ “Hello”, “World”];
word.map((word) => word && “Hi”);
So, what did I notice!
Value of the word array…