MDMahesh Deshmukhinmsdeshmukh.hashnode.dev·May 19, 2022 · 3 min readCustom HooksWhat's a custom hook? A custom hook is just a normal javascript function whose name starts with keyword use. It can make use of react's built-in hooks like useState() , useEffect(), etc. Custom hooks usually return useful values for our components. ...00
MDMahesh Deshmukhinmsdeshmukh.hashnode.dev·May 18, 2022 · 3 min readPromise Methods in JavascriptIntroduction A promise represents the eventual result of an asynchronous operation. Before the introduction of the promise, asynchronous actions were handled using callbacks. But that created unmanageable code, something which we call callback hell. ...00
MDMahesh Deshmukhinmsdeshmukh.hashnode.dev·May 18, 2022 · 4 min readContext APIIntroduction React's current context API is released in React version 16.3 and it replaced the legacy context API which had some design flaws. The major flaw of legacy API was that if a context value provided by component changes, descendants that u...00