React Typescript Input Onchange Functions In C