sahedthought.hashnode.devHow useState works in React.js (Rendering, Asynchronous, Batch and more)I expect that you have basic knowledge of React.js and Hooks. I will more focus on under the hood and some interesting behaviour of useState in this blog. Hooks are really useful in functional components in React.js. useState hook is commonly used. ...Dec 5, 2022路5 min read
sahedthought.hashnode.devGenerator Function in JavascriptA regular function is executed based on the run-to-completion model. It cannot pause midway and then continues from where it paused. But the generator function can do it. Let's explore it with an example. //normal function function normal() { con...Nov 29, 2022路2 min read
sahedthought.hashnode.devPrototype and how Class works in JavascriptI am not going to tell you what is the prototype in javascript. Let's explore it. Just create an html and js file. Add the js file to html file and run it in the web browser. function ab() { } console.dir(ab); Now check the console of your browser...Oct 2, 2022路3 min read
sahedthought.hashnode.devRedux Saga With ExampleDisclaimer: I assume you know Redux in this blog. (If you don't know you can read this blog) Redux Saga is a middleware of Redux. Now, What is the middleware of Redux? The middleware of Redux is the extension between dispatching an action and the re...Jul 26, 2022路5 min read
sahedthought.hashnode.devRedux Toolkit In DepthRedux Toolkit is intended to be the standard way to write Redux logic. Now, what is redux? Redux is mainly used for state management. We already understand that we should know about the basic principles of Redux before jumping to the Redux Toolkit. L...Jun 27, 2022路9 min read