Javascript – React How to Get Value of Function Component in Class based Main Component?
I Moved one form outside my Class Component. Eg: main.js <FormGroup> <Col sm={2} style={{ textAlign: 'right' }}> <input ref='emp_name' value='sam' /> </Col> </FormGroup> <FormGroup> <Col sm={2} style={{ textAlign: 'right' }}> <input ref='emp_salary' value='20k' /> </Col> </FormGroup> I moved salary portion…