Skip to content

Commit 36e5eea

Browse files
authored
Merge pull request #38 from Ankur-Marwaha/patch-1
Adding a point to question 13
2 parents 764b85d + 8bbd4a1 commit 36e5eea

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,9 @@
601601
}
602602
```
603603
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+
604607
605608
**[⬆ Back to Top](#table-of-contents)**
606609
@@ -6247,4 +6250,4 @@
62476250
322. ### What is the purpose of eslint plugin for hooks?
62486251
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,
62496252
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

Comments
 (0)