Which of the following is correct syntax for a button click event handler, foo?
<button onclick={this.foo()}>
<button onclick={this.foo}>
<button onClick={this.foo()}>
<button onClick={this.foo}>
Correct Answer : D
What happens when you call setState() inside render() method?
How do you write an inline style specifying the font-size:12px and color:red; in JSX