This page demonstrates the use of a dropdown control built with React JS. It allows the user to choose an item from a list. In this case, you're able to select a colour from the dropdown and see that colour applied to the selected text.
The dropdown itself is a React JS class, and I'm using LESS CSS for some of the more complicated CSS rules. I highly recommend you check them out.