Skip to content
Advertisement

Tag: web-development-server

useState not working with Array of Objects

So I am working with React Hooks and with an array of names which will have buttons. On clicking those buttons the corresponding name would disappear. But the array is not updating at all. Please advise what can be done, I’m a newbie in React. Thank you! Answer You are using your data variable which never changes instead of using

Advertisement