A
A
Alex_mos2020-07-11 23:47:35
React
Alex_mos, 2020-07-11 23:47:35

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

2 answer(s)
M
McBernar, 2020-07-12
@McBernar

This is not normal behavior. Look for errors, look for redirects, render conditions, etc.

A
alex kapustsin, 2020-07-12
@holysheepcoder

Component code in studio

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question