---
title: "Shivam Sharma (@shvmsrma) | Hashnode"
description: "Software Developer. Read the latest articles by Shivam Sharma on Hashnode."
url: "https://hashnode.com/@shvmsrma"
---

@shvmsrma

# Shivam Sharma

@shvmsrma · Hisar,Haryana,India · Joined May 2020

Software Developer

### [How to close the dropdown when clicked outside its division in React.](https://shivamsharma.hashnode.dev/how-to-close-the-dropdown-when-clicked-outside-its-division-in-react?utm_source=hashnode&utm_medium=feed)

During my internship. One day I was working on building some dropdown filters for our company's product. Initially, I thought yeah it's not too big a deal. I can simply store one state and render the list on setting the state as true. So initial phas...

4 min read · [shivamsharma.hashnode.dev](https://shivamsharma.hashnode.dev/how-to-close-the-dropdown-when-clicked-outside-its-division-in-react?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/how-to-close-the-dropdown-when-clicked-outside-its-division-in-react/60117f452426ce41970734a1) [Jan 27, 2021](https://hashnode.com/posts/how-to-close-the-dropdown-when-clicked-outside-its-division-in-react/60117f452426ce41970734a1)

### [Javascript and React learnings of some past months.](https://shivamsharma.hashnode.dev/javascript-and-react-learnings-of-some-past-months?utm_source=hashnode&utm_medium=feed)

1.) \_isMounted I recently found out about this when one of my colleague used this in his code and then I found out that in order to check whether our React component is mounted or not we can use this.\_isMounted in our lifecycle methods and it will re...

3 min read · [shivamsharma.hashnode.dev](https://shivamsharma.hashnode.dev/javascript-and-react-learnings-of-some-past-months?utm_source=hashnode&utm_medium=feed)

[Jan 16, 2021](https://hashnode.com/posts/javascript-and-react-learnings-of-some-past-months/60028dfc36551629d6a7ec7b)

### [Understanding the difference between let, var char and const in JavaScript](https://shivamsharma.hashnode.dev/understanding-the-difference-between-let-var-char-and-const-in-javascript?utm_source=hashnode&utm_medium=feed)

Understanding the difference between let, var char and const in JavaScript Let us begin with understanding var . It is the oldest way to declare variables in JavaScript Scope of var: var variables are globally as well as function/locally scoped .It m...

3 min read · [shivamsharma.hashnode.dev](https://shivamsharma.hashnode.dev/understanding-the-difference-between-let-var-char-and-const-in-javascript?utm_source=hashnode&utm_medium=feed)

[Sep 7, 2020](https://hashnode.com/posts/understanding-the-difference-between-let-var-char-and-const-in-javascript/5f564232dbed8a1c56698131)
