---
title: "Tarun Sharma (@101beardo) | Hashnode"
description: "React.js Frontend Web Developer | Next.js Specialist. Read the latest articles by Tarun Sharma on Hashnode."
url: "https://hashnode.com/@101beardo"
---

@101beardo

# Tarun Sharma

@101beardo · Bengaluru, India · Joined August 2026

React.js Frontend Web Developer | Next.js Specialist

[Website](https://101beardo.github.io/)

### [Testing a component that uses WebSockets, without a real server](https://101beardo.hashnode.dev/testing-a-component-that-uses-websockets-without-a-real-server?utm_source=hashnode&utm_medium=feed)

A component that talks to a REST API is easy to test. You mock the HTTP call, resolve it with fixture data, assert on the render. A component that talks to a WebSocket is a different animal, and most

4 min read · [101beardo.hashnode.dev](https://101beardo.hashnode.dev/testing-a-component-that-uses-websockets-without-a-real-server?utm_source=hashnode&utm_medium=feed)

[Sep 16](https://hashnode.com/posts/testing-a-component-that-uses-websockets-without-a-real-server/6aaae6cbe4cde8d067097011)

### [Why does React call your component function twice in development?](https://101beardo.hashnode.dev/why-does-react-call-your-component-function-twice-in-development?utm_source=hashnode&utm_medium=feed)

If you have added a console.log at the top of a component in a fresh Create React App or Next.js project, you have probably noticed it fires twice on the first render. Nothing is broken. This is Stric

3 min read · [101beardo.hashnode.dev](https://101beardo.hashnode.dev/why-does-react-call-your-component-function-twice-in-development?utm_source=hashnode&utm_medium=feed)

[Sep 9](https://hashnode.com/posts/why-does-react-call-your-component-function-twice-in-development/6aa17dd16c7cde76885dfea5)

### [The virtual DOM doesn't skip rendering. It skips writing to the DOM.](https://101beardo.hashnode.dev/the-virtual-dom-doesn-t-skip-rendering-it-skips-writing-to-the-dom?utm_source=hashnode&utm_medium=feed)

"The virtual DOM skips re-rendering unchanged parts" is one of those explanations that gets repeated so often it starts to sound obviously true. It's not quite right, and the gap between what it actua

3 min read · [101beardo.hashnode.dev](https://101beardo.hashnode.dev/the-virtual-dom-doesn-t-skip-rendering-it-skips-writing-to-the-dom?utm_source=hashnode&utm_medium=feed)

[Aug 18](https://hashnode.com/posts/the-virtual-dom-doesn-t-skip-rendering-it-skips-writing-to-the-dom/6a8455eb1e5d1c04f5eb9272)

### [The closures question that trips up almost every React interview](https://101beardo.hashnode.dev/the-closures-question-that-trips-up-almost-every-react-interview?utm_source=hashnode&utm_medium=feed)

If there's one JavaScript question that shows up in almost every frontend interview in some form, it's this one: for (var i = 0; i < 3; i++) { setTimeout(() => console.log(i)); } What does this log

3 min read · [101beardo.hashnode.dev](https://101beardo.hashnode.dev/the-closures-question-that-trips-up-almost-every-react-interview?utm_source=hashnode&utm_medium=feed)

[Aug 14](https://hashnode.com/posts/the-closures-question-that-trips-up-almost-every-react-interview/6a7ecfe5f7027efc47475a37)
