---
title: "Shubhanshu (@slytherindor) | Hashnode"
description: "build -> fail -> iterate -> succeed. Read the latest articles by Shubhanshu on Hashnode."
url: "https://hashnode.com/@slytherindor"
---

@slytherindor

# Shubhanshu

@slytherindor · Ottawa · Joined December 2021

build -> fail -> iterate -> succeed

### [How to use useState in React to update state based on previous value?](https://slytherindor.hashnode.dev/how-to-use-usestate-in-react-to-update-state-based-on-previous-value?utm_source=hashnode&utm_medium=feed)

use useState to update state based on previous state

3 min read · [slytherindor.hashnode.dev](https://slytherindor.hashnode.dev/how-to-use-usestate-in-react-to-update-state-based-on-previous-value?utm_source=hashnode&utm_medium=feed)

[2](https://hashnode.com/posts/how-to-use-usestate-in-react-to-update-state-based-on-previous-value/640a7d66b409bec797470a20) [Mar 10, 2023](https://hashnode.com/posts/how-to-use-usestate-in-react-to-update-state-based-on-previous-value/640a7d66b409bec797470a20)

### [How to perform async operation in useEffect](https://slytherindor.hashnode.dev/how-to-perform-async-operation-in-useeffect?utm_source=hashnode&utm_medium=feed)

use IIFEs to execute asynchronous code in the hook

3 min read · [slytherindor.hashnode.dev](https://slytherindor.hashnode.dev/how-to-perform-async-operation-in-useeffect?utm_source=hashnode&utm_medium=feed)

[Mar 3, 2023](https://hashnode.com/posts/how-to-perform-async-operation-in-useeffect/640a7f353fdabe31c6fa4cbe)

### [Using specific object properties as hook dependencies in React](https://slytherindor.hashnode.dev/using-specific-object-properties-as-hook-dependencies-in-react?utm_source=hashnode&utm_medium=feed)

React 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.dev](https://slytherindor.hashnode.dev/using-specific-object-properties-as-hook-dependencies-in-react?utm_source=hashnode&utm_medium=feed)

[Feb 24, 2023](https://hashnode.com/posts/using-specific-object-properties-as-hook-dependencies-in-react/640a82885bac4704cd86f05f)

### [using createPortal to show modal in React](https://slytherindor.hashnode.dev/using-createportal-to-show-modal-in-react?utm_source=hashnode&utm_medium=feed)

React 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.dev](https://slytherindor.hashnode.dev/using-createportal-to-show-modal-in-react?utm_source=hashnode&utm_medium=feed)

[Feb 17, 2023](https://hashnode.com/posts/using-createportal-to-show-modal-in-react/640a85591119ca5c81fedfdc)
