Why is React updating state even though I'm not updating the state using useState? – Reactjs
I was always under the assumption that React updates the UI only when I make immutable changes to the state. Recently I came across a snippet that did something I didn't expect: import { useState } from "react"; import "./App.css";…