Home > Back-end >  How to insert URL into text area using ReactJS?
How to insert URL into text area using ReactJS?

Time:09-22

I have made a small modal pop-up for getting the URL from the user. I want to insert that URL into a textbox in ReactJS. I can't figure out how to add that URL into the text area.

CodePudding user response:

Use local state to achieve this. For example take url as input from user and set it into local state and use that state in modal.

CodePudding user response:

Maybe this will help. How can I get value from react modal bootstrap?

Get the value from the modal as mentioned above, store it, and then display that stored value in the textbox.

<textbox value= { nameOfVariable }></textbox>
  • Related