The Recoil package lives in npm. To install the latest stable version, run the following command:
Or if you're using yarn:
If you are using eslint-plugin-react-hooks in your project. For example, with an eslint config like this:
It is recommended to add
'useRecoilCallback' to the list of
additionalHooks. With this change, ESLint will warn when the dependencies passed to
useRecoilCallback() are specified incorrectly and suggests a fix. The format of
additionalHooks is a regex string.