Answer the question
In order to leave comments, you need to log in
How to cancel select processing in react?
Not so long ago I began to study react, there is such a question, can someone tell me where you can read about it.
There is a Select component on which there is an onChange handler, when a value is selected, the data goes into the state and the page just becomes empty (as if a redirect is taking place)
How can I make onChange work, the data gets into the state, and nothing else happens.
(I use react-select)
Answer the question
In order to leave comments, you need to log in
This is not normal behavior. Look for errors, look for redirects, render conditions, etc.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question