VT Netzwelt Pvt. Ltd. interview question

why react hooks re-renders ?