How to set props use refs in React js

Viewed 9383

who knows how change props in my component use refs in react js ?

<MyComponent
  ref={'input1'}
  name={'input1'}
  label={interestsName}
  disabled={ false}
  onChange={this.myFunction}/>

after onChange i call function with

myFunction =()=>{console.log(this.rews[input1].props.disable);}

May I change props use refs without use state? Because I have many '15' components such as this component. Thanks.

2 Answers
Related