Skip to content
Advertisement

how to reverse a clicked list item onclick in reactjs


I am getting numbers from the input field and rendering them below the input field one by one with the click of the button. So I want to know how can I reverse a text for a particular clicked item from the list.
Thank you.

JavaScript

Advertisement

Answer

Hey You want to do something like this for easie.

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement