We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5f718cb + 09fd152 commit d06f3f5Copy full SHA for d06f3f5
src/content/1/en/part1d.md
@@ -1029,9 +1029,9 @@ const App = (props) => {
1029
return (
1030
<div>
1031
{value}
1032
- <Button handleClick={setToValue(1000)} text="thousand" /> // highlight-line
1033
- <Button handleClick={setToValue(0)} text="reset" /> // highlight-line
1034
- <Button handleClick={setToValue(value + 1)} text="increment" /> // highlight-line
+ <Button handleClick={() => setToValue(1000)} text="thousand" /> // highlight-line
+ <Button handleClick={() => setToValue(0)} text="reset" /> // highlight-line
+ <Button handleClick={() => setToValue(value + 1)} text="increment" /> // highlight-line
1035
</div>
1036
)
1037
}
0 commit comments