Skip to content

Commit

Permalink
docs: Unify link
Browse files Browse the repository at this point in the history
  • Loading branch information
davesnx committed Oct 19, 2020
1 parent 7d35da6 commit f3e0bb1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# react-rules-of-hooks-ppx
This package is a no-op ppx rewriter. It is used as a 'lint' to
enforce the rules of React hooks.
enforce React's [Rules of Hooks](https://en.reactjs.org/docs/hooks-rules.html).

- [x] Exhaustive dependencies in useEffect
- [x] Order of Hooks
- [x] Hooks shoudn't be called in different order
- [x] Only Call Hooks at the Top Level

Read more about the [Rules of Hooks](https://en.reactjs.org/docs/hooks-rules.html)

## Why
One of the points of using [Reason](https://reasonml.github.io) or [ReScript](https://rescript-lang.org) is to have a compiler that warns about issues with your code, where functions expect different structures from the given ones and any sort of missmatch between interfaces. This works amazingly well, but I found a case where the compiler can't validate that your code works as expected.

Expand Down

0 comments on commit f3e0bb1

Please sign in to comment.