✅ – Alforoan – 05-35 Jan 4
So I've rendered a bunch of movies from an api and would like a button (that each movie has) to change its state (prev => !prev) every time i click on a button but only for one movie not all. I've tried filtering by passing in id but the warning says encountered two children with same key(id) and idk how to fix that
44 Replies
this is what i have
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
like i fetched the api and made a component that renders each movie
kinda like that
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
button, image, title, date
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
i have it on the same page
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
they r all on the same page
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
well im not sure if i know 100% what u mean
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
i have a state thats set as false
its set to true if i click on that button