3.0.1 • Published 8 years ago
react-util v3.0.1
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