---
title: "ranjan (@ranjanmehta) | Hashnode"
description: "ranjan (@ranjanmehta) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@ranjanmehta"
---

@ranjanmehta

# ranjan

@ranjanmehta · Joined February 2023

### [Getting started with Prettier under 1 minute](https://ranjans.hashnode.dev/getting-started-with-prettier-under-1-minute?utm_source=hashnode&utm_medium=feed)

What is even prettier

2 min read · [ranjans.hashnode.dev](https://ranjans.hashnode.dev/getting-started-with-prettier-under-1-minute?utm_source=hashnode&utm_medium=feed)

[Aug 19, 2025](https://hashnode.com/posts/getting-started-with-prettier-under-1-minute/68a3f295a5e671add0d9b40d)

### [how to show image larger than the screen /parent window without overflow using tailwind css](https://ranjans.hashnode.dev/how-to-show-image-larger-than-the-screen-parent-window-without-overflow-using-tailwind-css?utm_source=hashnode&utm_medium=feed)

<div className="w-full overflow-hidden flex justify-center"> <img className="max-h-\[30rem\] max-w-none" src="/images/saffron-box.png" alt="saffron-box" /> </div>

1 min read · [ranjans.hashnode.dev](https://ranjans.hashnode.dev/how-to-show-image-larger-than-the-screen-parent-window-without-overflow-using-tailwind-css?utm_source=hashnode&utm_medium=feed)

[Aug 21, 2024](https://hashnode.com/posts/how-to-show-image-larger-than-the-screen-parent-window-without-overflow-using-tailwind-css/66c5ab44a9e49fbb3dfdb65d)

### [How to get the height of browser window in React ?](https://ranjans.hashnode.dev/how-to-get-the-height-of-browser-window-in-react?utm_source=hashnode&utm_medium=feed)

import "./styles.css"; import { useEffect, useState } from "react"; export default function App() { const \[windowHeight, setWindowHeight\] = useState(window.innerHeight); useEffect(() => { const handleResize = () => { setWindowHeight(...

1 min read · [ranjans.hashnode.dev](https://ranjans.hashnode.dev/how-to-get-the-height-of-browser-window-in-react?utm_source=hashnode&utm_medium=feed)

[Aug 13, 2024](https://hashnode.com/posts/how-to-get-the-height-of-browser-window-in-react/66bb732971f5f416777d9440)

### [HTML vs DOM tree](https://ranjans.hashnode.dev/html-vs-dom-tree?utm_source=hashnode&utm_medium=feed)

a literal tree very unrelated to the DOM tree So I read this, "Keep in mind that the JavaScript does not alter your HTML, but the DOM - your HTML file will look the same, but the JavaScript changes what the browser renders." and thought this needed e...

2 min read · [ranjans.hashnode.dev](https://ranjans.hashnode.dev/html-vs-dom-tree?utm_source=hashnode&utm_medium=feed)

[Aug 19, 2023](https://hashnode.com/posts/html-vs-dom-tree/64e0bc75db28c51ccec2bdcd)
