Question: how to get the key of a selected value from a dropdown in react js?
Answer: Use react-select. It is able to handle id and value elegantly. Map your id to react-select value and your value to react-select label . You can configure callback which will return you selected value/s.