package react-rules-of-hooks-ppx

  1. Overview
  2. No Docs
This ppx validates the rules of React hooks in reason-react components

Install

dune-project
 Dependency

Authors

Maintainers

Sources

react-rules-of-hooks-ppx-1.0.0.tbz
sha256=6b7fdca0f32c2f05f1480db5a0b85e0726cdb1ed3d7136054a4071b4d41a8188
sha512=18b51e6a70b6cfa31cc00e8f5601ed6fe85456c5388dc41f1cc7ed21830b8ca737f3e1dff47f8736aa5553b0e463f6f8dcac165e328b5c0a1590507e1bd3ed3d

Description

Validates exhaustive dependencies in useEffect, useLayoutEffect, useInsertionEffect, useCallback, useMemo and ensures hooks are called at the top level, never conditionally or inside loops.

Published: 29 Jan 2026

Dependencies (3)

  1. ppxlib >= "0.36.0"
  2. ocaml >= "4.14"
  3. dune >= "3.16"

Dev Dependencies (8)

  1. odoc with-doc
  2. ocamlmerlin-mlx with-dev-setup
  3. ocamlformat-mlx with-dev-setup
  4. mlx with-dev-setup
  5. ocaml-lsp-server with-dev-setup
  6. ocamlformat with-dev-setup
  7. melange with-dev-setup
  8. reason with-test & >= "3.10.0"

Used by

None

Conflicts

None