How to use useState in React to update state based on previous value?use useState to update state based on previous state3 min read·slytherindor.hashnode.dev2MAMar 10, 2023
How to perform async operation in useEffectuse IIFEs to execute asynchronous code in the hook3 min read·slytherindor.hashnode.devMar 3, 2023
Using specific object properties as hook dependencies in ReactReact is a powerful JavaScript library used to create user interfaces. One of its core concepts is the use of hooks, which allow developers to add state and lifecycle methods to functional components. One common issue that developers face when using ...2 min read·slytherindor.hashnode.devFeb 24, 2023
using createPortal to show modal in ReactReact is a popular JavaScript library used for building user interfaces. One common feature of many applications is the use of modals or pop-ups. Modals can be used for a variety of purposes, such as displaying a login form or showing a confirmation ...3 min read·slytherindor.hashnode.devFeb 17, 2023