I’m working on a React project and I’m stuck.
I have an HTML button that when clicked I want it to edit another HTML element’s content i.e. the user clicks the button and an li element is editable and allows the user to type in text and then the li is updated.
How would I do this in React? I have the button, the li, and state set up. How would I make the li element focus and become editable when the user clicks the button?