jsx-autobind
v1.1.0
Published
Easy autobind for jsx template
Downloads
2
Readme
jsx-autobind
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>
}
}