DEV Community

Sukh Sangha
Sukh Sangha

Posted on

ReactJS - How does one delete a button component, that was just clicked?

My aim is to delete the button, I have just clicked. I understand there may be numerous ways such as creating a deleteButton component, and setting the state appropriately.

However, my return function in the main App component will also render another button (this I can do), but I think…

Top comments (0)