News for hackers. Stuff that matters.
Re:A Primer for Building Single Page Applications with React by mtrimpe on Tuesday March 24, 2015 @03:01PM (#9258658)
As far as I'm concerned <a onClick="function('value')"> was bad because 'function' was a global variable reference.

I don't think that's the case for React though so I'm not sure if the GP saw some other drawbacks in it (apart from the aesthetic of separating logic from presentation.)

Re:A Primer for Building Single Page Applications with React by Bahamut on Tuesday March 24, 2015 @04:48PM (#9259381)
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.