DEV Community

loading...

Discussion on: How to use toggle outside of class component render and toggle inside variable reactjs?

Collapse
fernandoperigolo profile image
Fernando Souza

I made a working POC based in your code and leave some comments in code, codesandbox.io/s/xenodochial-breez...

I hope it helps you

Collapse
nikhilroy2 profile image
Nikhil Chandra Roy Author

I think, you do not understand properly. now think, I want to make a chat and then send the message then I want to set the delete option or any other button, toggle but without any sending SMS I don't want to toggle. only specific SMS toggle should work so that I can add delete, toggle, edit, copy etc button.