calling setstate or a variable in map react useState code example Example: usestate const [count, setCount] = useState(0);