Y
Hacker News
new
|
ask
|
show
|
jobs
by
Bahamut
4098 days ago
In React, you would do <a onClick={this.props.foo('value')}> (for example) - JSX would interpolate that and set up the appropriate click binding, and the function is local to the component.