---
title: "Deepansh Bhargava (@deepansh) | Hashnode"
description: "Software Developer @ HST Solar. Read the latest articles by Deepansh Bhargava on Hashnode."
url: "https://hashnode.com/@deepansh"
---

@deepansh

# Deepansh Bhargava

@deepansh · Guna, India · Joined July 2020

Software Developer @ HST Solar

## Comments

[Thanks Sandeep Panda and Hashnode Team.](https://hashnode.com/posts/winners-of-may-coffee-giveaway/60ba3b1582d26410fbbf80ac/comment/60bbec11fffc4c13b9cd6cd6)

Comment · Article · Jun 5, 2021 · [Winners of May Coffee Giveaway!](https://hashnode.com/posts/winners-of-may-coffee-giveaway/60ba3b1582d26410fbbf80ac)

[Thanks for pointing this out. So the useState hook returns an array consisting of two elements, and we can name these variables as per our need. The 0 passed in the useState is the initial value of the state variable. I wanted to set the value of number as 0 and as it is even so I have set the value of isEven as true.](https://hashnode.com/posts/hooks-in-react/60941cbda7a3827bb64ce418/comment/6094b932d1bbc47b91a678da#reply-6094d3abd1bbc47b91a67ae0)

Reply · Article · May 7, 2021 · [Hooks in React](https://hashnode.com/posts/hooks-in-react/60941cbda7a3827bb64ce418)
