ReactJS - who stole my new state value?
TLDR: use the useEffect hook if you need to do something everytime a state value change.
Occasionally, you might run into this beginner mistake (I do!):
import { useState } from "react";
function Counter() {
const [count, setCount] = useState(0)...
caffeinatedcode.hashnode.dev1 min read