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

Readme

Keywords

Package Sidebar

Install

npm i react-util

Weekly Downloads

14

Version

3.0.1

License

MIT

Last publish

Collaborators

  • coderhaoxin