Do you want to request a feature or report a bug?
Bug
What is the current behavior?
In the tutorial are functional components explained with the following code-snippet
function Square(props) {
return (
<button className="square" onClick={() => props.onClick()}>
{props.value}
</button>
);
}
What is the expected behavior?
To work correctly when you follow the tutorial it should be
function Square(props) {
return (
<button className="square" onClick={() => props.handleClick()}>
{props.value}
</button>
);
}
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
v15.4.2
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
In the tutorial are functional components explained with the following code-snippet
What is the expected behavior?
To work correctly when you follow the tutorial it should be
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
v15.4.2