get-input-value.js 161 Bytes edit raw blame history 1 2 3 4 export const getInputValue = (component, ref, nested) => { const element = component.refs[ref]; return nested ? element.refs.input.value : element.value; };