I have input component and checkbox component which both are close in other component which is repeat x times. How can I change value in input component when my checkbox will be selected?
resetValue(){
 this.props.value = 45;
 }
return( 
 <div> 
   <InputComponent value={this.props.value}/>
   <CheckboxComponent onChange={this.resetValue}/>
 </div>
)
