Wednesday, 1 February 2017

What is the correct way to attach the function 'go' to a click event? Facebook ReactJS Interview Question

var yo = function () {
alert('go');
};
Ans:
<button onClick={yo}></button>

WHAT OTHERS ARE READING/RELATED TO THIS:

0 comments:

Post a Comment