npm i react-util
- Textarea
- Input
this::allRefVals()
this::clearRefs()
this::setRefs(obj)
this::refVal()
- get val -
this::refVal('ref')
- set val -
this::refVal('ref', 'val')
- get val -
this::clear('ref')
this::focus('ref')
import { allRefVals } from 'react-util'
import { Component } from 'react'
class App extends Component {
getData() {
console.log(this::allRefVals())
}
}
MIT