How to get the height of browser window in React ?
import "./styles.css";
import { useEffect, useState } from "react";
export default function App() {
const [windowHeight, setWindowHeight] = useState(window.innerHeight);
useEffect(() => {
const handleResize = () => {
setWindowHeight(...
ranjans.hashnode.dev1 min read