You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -601,6 +601,9 @@
601
601
}
602
602
```
603
603
604
+
2. In HTML, you need to invoke the function by appending `()`
605
+
Whereas in react you should not append `()` with the function name. (refer "activateLasers" function in the first point for example)
606
+
604
607
605
608
**[⬆ Back to Top](#table-of-contents)**
606
609
@@ -6247,4 +6250,4 @@
6247
6250
322. ### What is the purpose of eslint plugin for hooks?
6248
6251
The ESLint plugin enforces rules of Hooks to avoid bugs. It assumes that any function starting with ”use” and a capital letter right after it is a Hook. In particular, the rule enforces that,
6249
6252
1. Calls to Hooks are either inside a PascalCase function (assumed to be a component) or another useSomething function (assumed to be a custom Hook).
6250
-
2. Hooks are called in the same order on every render.
6253
+
2. Hooks are called in the same order on every render.
0 commit comments