a simple dropdown component based on React