Is it possible to have two states in one react component
问题 I'm trying to build a simple unit convertor to practice React.js. I want to be able to change the value of one unit eg: Kg, and have the other unit eg: lb to automatically change on the screen. Please see this website to give you an idea: http://www.convertunits.com/from/lb/to/kg I have the following code, it renders but the units don't update. What I want to know is: Is it even accurate for one component to have two states ? 1 for Kg and another for lb Or would they need to be sibling