ReactJS – will useEffect setup function run every time re-render if not setting the dependencies?
I was learning useEffect hook of React recently, and I tried to write a function with useState and useEffect to see how different kinds of useEffect dependencies works. Below is my code: import { useEffect, useState } from "react"; import…