1.

Which of the following is correct syntax for a button click event handler, foo?

A. <button onclick={this.foo()}>
B. <button onclick={this.foo}>
C. <button onClick={this.foo()}>
D. <button onClick={this.foo}>
Answer» E.


Discussion

No Comment Found