---
title: "Karan Hejmadi (@KaranHejmadi) | Hashnode"
description: "Full Stack Developer. Read the latest articles by Karan Hejmadi on Hashnode."
url: "https://hashnode.com/@KaranHejmadi"
---

@KaranHejmadi

# Karan Hejmadi

@KaranHejmadi · India · Joined October 2020

Full Stack Developer

[Website](http://karanhejmadi.netlify.app/)

## Comments

[You can do that as well. setCount(prevCount => prevCount+1) gets the previous state and adds 1 to it. I think it works better if you have several setState in batches.](https://hashnode.com/posts/how-to-get-the-previous-state-in-react/613c565022b7a41dfe5fb88a/comment/613cb5121821961e2551ecb0#reply-613da27322b7a41dfe5fd66c)

Reply · Article · Sep 12, 2021 · [How to get the PREVIOUS state in React?](https://hashnode.com/posts/how-to-get-the-previous-state-in-react/613c565022b7a41dfe5fb88a)

[Hey, nice meeting you Darby! I'd say I love to design products as well as coding them out. I'm a bit more into design :)](https://hashnode.com/posts/looking-to-connect-with-designers-who-code-or-vice-versa/6113db2d611d5c199a2fa838/comment/6113ed54119030192497a261)

Comment · Article · Aug 11, 2021 · [Looking To Connect With Designers Who Code (or vice versa)](https://hashnode.com/posts/looking-to-connect-with-designers-who-code-or-vice-versa/6113db2d611d5c199a2fa838)
