Considering below hooks example
import { useState } from \'react\'; function Example() { const [count, setCount] = useState(0); return
This will render depending components 3 times (arrays with equal elements aren't equal):
const [msg, setMsg] = useState([""]) setMsg(["test"]) setMsg(["test"]) setMsg(["test"])