The way we’re calling Item, is not a component at all, but a function. React cannot associate any useState calls to the Item function, just because it’s not rendered as a component.
Been banging my head against the wall for an hour. You saved my day, thank you!
Been banging my head against the wall for an hour. You saved my day, thank you!
I'm glad it helped! Thanks to you for leaving a comment :D