Skip to content

Randagio13/jsx-autobind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsx-autobind npm version

Easy autobind function for jsx template

autobind(fn, ...params)

Usage in React Component

import autobind from 'jsx-autobind'

class Home extends Component {
  test(param) {
    console.log(param);
  }
  render() {
    const param = 'Hello'
    return <div>{autobind(this.test, param)}</div>
  }
}

About

Easy autobind function for jsx template

Resources

License

Stars

Watchers

Forks

Packages

No packages published