react-util

3.0.1 • Public • Published

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')
  • 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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.0.183latest

Version History

VersionDownloads (Last 7 Days)Published
3.0.183
3.0.00
2.4.00
2.3.20
2.3.10
2.3.00
2.2.01
2.1.20
2.1.10
2.1.00
2.0.20
2.0.10
2.0.00
1.1.00
1.0.00

Package Sidebar

Install

npm i react-util

Weekly Downloads

84

Version

3.0.1

License

MIT

Last publish

Collaborators

  • coderhaoxin