Ask for help on a question about React

ask for a question about react

the company"s client software tries to use react refactoring, but in a filter select drop-down box, there need to be two default values when initializing the page, which I deal with in componentWillMount. However, once the drop-down item changes, the default value has no filtering effect. I tried to bind the default state array into selected, but it still has no effect. Is there any better way?

Mar.25,2021
The value of

select can be replaced by state. When loading, setState just put the data obtained by the API into it

Menu