score:2

Accepted answer

if i understand your problem correctly you want to know the updated value and for that you can use useeffect api which will get called whenever there is change in one of the value you want to observe. the values you want to observe you need to pass as second parameter as array in useeffect. in your case you want to know the updated value for techfilterterm so you can pass techfilterterm as second argument to useeffect as below.

 useeffect(() => {
      //here you will get the updated value whenever there is change in value
  },[techfilterterm]); 

here is the link for more info on useeffect.

https://reactjs.org/docs/hooks-effect.html


Related Query

More Query from same tag