@castiron/hooks
v3.1.0
Published
A set of common hooks
Downloads
742
Keywords
Readme
common-js/hooks
A repository for common React hooks
Requires
React!
TS Config Setup
To import individual hooks, make sure your project's ts config file has these options:
{
"compilerOptions": {
"module": "esnext",
"moduleResolution": "bundler",
...
}
...
}
Importing
@castiron/hooks/
is set up so that you can
# import hooks individually, in little bite sized pieces:
import useLatest from "@castiron/hooks/useLatest";
# or use named imports:
import { useLatest } from "@castiron/hooks";
# to import hooks individually without tsconfig moduleResolution: "bundler", refer to the dist directory:
import useLatest from "@castiron/hooks/dist/useLatest";
Other libraries
To see a list of other supported libraries by team Frontendos, see the resources page in Notion.