Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,9 @@
}
```

2. In HTML, you need to invoke the function by appending `()`
Whereas in react you should not append `()` with the function name. (refer "activateLasers" function in the first point for example)


**[⬆ Back to Top](#table-of-contents)**

Expand Down Expand Up @@ -6247,4 +6250,4 @@
322. ### What is the purpose of eslint plugin for hooks?
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,
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).
2. Hooks are called in the same order on every render.
2. Hooks are called in the same order on every render.