├── .editorconfig ├── .github └── workflows │ ├── pr.yml │ ├── publish.yml │ └── tests.yml ├── .gitignore ├── .prettierrc ├── LICENSE ├── README.md ├── jest.config.js ├── package.json ├── src ├── index.test.ts ├── index.ts ├── useInstance │ ├── README.md │ ├── makeProxy.ts │ ├── useInstance.test.ts │ └── useInstance.ts ├── useIsMounted │ ├── README.md │ ├── useIsMounted.test.ts │ └── useIsMounted.ts ├── usePrevious │ ├── README.md │ ├── usePrevious.test.ts │ └── usePrevious.ts ├── useRefresh │ ├── README.md │ ├── useRefresh.test.ts │ └── useRefresh.ts ├── useStorage │ ├── MemoryStorage.test.ts │ ├── README.md │ ├── createMemoryStorage.ts │ ├── defaultStorage.test.ts │ ├── defaultStorage.ts │ ├── index.ts │ ├── useStorage.test.ts │ └── useStorage.ts └── utils │ ├── index.ts │ ├── isFunction.test.ts │ ├── isFunction.ts │ └── isInBrowser.ts ├── testsSetup.ts ├── tsconfig.json └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/workflows/pr.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/.github/workflows/pr.yml -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/.github/workflows/publish.yml -------------------------------------------------------------------------------- /.github/workflows/tests.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/.github/workflows/tests.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/.prettierrc -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/README.md -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/package.json -------------------------------------------------------------------------------- /src/index.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/src/index.test.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/useInstance/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/src/useInstance/README.md -------------------------------------------------------------------------------- /src/useInstance/makeProxy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/src/useInstance/makeProxy.ts -------------------------------------------------------------------------------- /src/useInstance/useInstance.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/src/useInstance/useInstance.test.ts -------------------------------------------------------------------------------- /src/useInstance/useInstance.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/src/useInstance/useInstance.ts -------------------------------------------------------------------------------- /src/useIsMounted/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/src/useIsMounted/README.md -------------------------------------------------------------------------------- /src/useIsMounted/useIsMounted.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/src/useIsMounted/useIsMounted.test.ts -------------------------------------------------------------------------------- /src/useIsMounted/useIsMounted.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/src/useIsMounted/useIsMounted.ts -------------------------------------------------------------------------------- /src/usePrevious/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/src/usePrevious/README.md -------------------------------------------------------------------------------- /src/usePrevious/usePrevious.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/src/usePrevious/usePrevious.test.ts -------------------------------------------------------------------------------- /src/usePrevious/usePrevious.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/src/usePrevious/usePrevious.ts -------------------------------------------------------------------------------- /src/useRefresh/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/src/useRefresh/README.md -------------------------------------------------------------------------------- /src/useRefresh/useRefresh.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/src/useRefresh/useRefresh.test.ts -------------------------------------------------------------------------------- /src/useRefresh/useRefresh.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/src/useRefresh/useRefresh.ts -------------------------------------------------------------------------------- /src/useStorage/MemoryStorage.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/src/useStorage/MemoryStorage.test.ts -------------------------------------------------------------------------------- /src/useStorage/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/src/useStorage/README.md -------------------------------------------------------------------------------- /src/useStorage/createMemoryStorage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/src/useStorage/createMemoryStorage.ts -------------------------------------------------------------------------------- /src/useStorage/defaultStorage.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/src/useStorage/defaultStorage.test.ts -------------------------------------------------------------------------------- /src/useStorage/defaultStorage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/src/useStorage/defaultStorage.ts -------------------------------------------------------------------------------- /src/useStorage/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/src/useStorage/index.ts -------------------------------------------------------------------------------- /src/useStorage/useStorage.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/src/useStorage/useStorage.test.ts -------------------------------------------------------------------------------- /src/useStorage/useStorage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/src/useStorage/useStorage.ts -------------------------------------------------------------------------------- /src/utils/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/src/utils/index.ts -------------------------------------------------------------------------------- /src/utils/isFunction.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/src/utils/isFunction.test.ts -------------------------------------------------------------------------------- /src/utils/isFunction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/src/utils/isFunction.ts -------------------------------------------------------------------------------- /src/utils/isInBrowser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/src/utils/isInBrowser.ts -------------------------------------------------------------------------------- /testsSetup.ts: -------------------------------------------------------------------------------- 1 | import '@testing-library/jest-dom' 2 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webNeat/react-tidy/HEAD/yarn.lock --------------------------------------------------------------------------------