react-util
v3.0.1
Published
```bash npm i react-util ```
Downloads
124
Readme
Install
npm i react-util
APIs
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')
Examples
import { allRefVals } from 'react-util'
import { Component } from 'react'
class App extends Component {
getData() {
console.log(this::allRefVals())
}
}
License
MIT