Basic form generator in react.js