-
Hey fellow hackers, As you can see below I have two react select input fields and on the click on the button I want to swap the two input fields so that To swaps with From. What is the best way to manipulate the input field to do that? Can I save it somehow and swap it out with useRef for Example? Any help is much appreciated, |
Beta Was this translation helpful? Give feedback.
Answered by
manjushsh
Mar 25, 2022
Replies: 1 comment 3 replies
-
@teifler Something like this?
Component:
|
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
teifler
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@teifler Something like this?
Component: