Relative Content

Tag Archive for reactjstypescript

Can not set the state value to the api response [duplicate]

This question already has answers here: The useState set method is not reflecting a change immediately (21 answers) Closed last month. I am building a basic context where I getting a response from an api that i build, simple one no auth and headers. Yet when I am trying to set the state value of […]

How to filter data from select using React and TypeScript

I’m trying to filter the data by select, but I don’t know why my code doesn’t work. In the console I can see that it correctly shows me the selected items (option). I noticed that the problem is onChange, which shows undefined in the console even though the value is correctly shown.