Commit 95ca895
authored
Update part-1d, missing syntax
The 3 Button components in the example were directly calling the setToValue() function instead of wrapping it into a function and then calling it (just like in the screenshot below). When copy and pasted into vscode, React would error out due to an infinite loop. This fix matches the correct way like in the screenshot.1 parent c563014 commit 95ca895
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
935 | 935 | | |
936 | 936 | | |
937 | 937 | | |
938 | | - | |
939 | | - | |
940 | | - | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
941 | 941 | | |
942 | 942 | | |
943 | 943 | | |
| |||
0 commit comments