Skip to content

Tag: reactjs

Problem with conditional statements in React Hook

I wrote a program that takes a data that has an object from the movie and adds the state of the watch to each of the objects and puts it in the state. The whole program works properly My only problem is that when I click on the watched button, I want the text of the button to be changed