├── .babelrc ├── .eslintrc ├── .github └── FUNDING.yml ├── .gitignore ├── .npmignore ├── .nyc_output └── processinfo │ └── index.json ├── .prettierrc ├── .travis.yml ├── CHANGELOG.md ├── LICENSE ├── README.md ├── README_CN.md ├── index.d.ts ├── package.json ├── scripts └── verify-commit-msg.js ├── src ├── hooks │ ├── useInstanceVar.js │ ├── useLifeCycle.js │ ├── useSingleInstanceVar.js │ ├── useSingleState.js │ └── useStateCB.js └── index.js ├── test ├── dom.js ├── useInstanceVar.spec.js ├── useLifeCycle.js.spec.js ├── useSingleInstanceVar.spec.js ├── useSingleState.spec.js └── useStateCB.spec.js ├── webpack.config.js └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniel-dx/nice-hooks/HEAD/.babelrc -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniel-dx/nice-hooks/HEAD/.eslintrc -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniel-dx/nice-hooks/HEAD/.github/FUNDING.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | logfile 2 | 3 | .env 4 | 5 | node_modules/ 6 | lib/ 7 | .nyc_output/ 8 | .history 9 | 10 | CHANGELOG_TEMP.md -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | src/ 2 | test/ -------------------------------------------------------------------------------- /.nyc_output/processinfo/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniel-dx/nice-hooks/HEAD/.nyc_output/processinfo/index.json -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniel-dx/nice-hooks/HEAD/.prettierrc -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniel-dx/nice-hooks/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniel-dx/nice-hooks/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniel-dx/nice-hooks/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniel-dx/nice-hooks/HEAD/README.md -------------------------------------------------------------------------------- /README_CN.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniel-dx/nice-hooks/HEAD/README_CN.md -------------------------------------------------------------------------------- /index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniel-dx/nice-hooks/HEAD/index.d.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniel-dx/nice-hooks/HEAD/package.json -------------------------------------------------------------------------------- /scripts/verify-commit-msg.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniel-dx/nice-hooks/HEAD/scripts/verify-commit-msg.js -------------------------------------------------------------------------------- /src/hooks/useInstanceVar.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniel-dx/nice-hooks/HEAD/src/hooks/useInstanceVar.js -------------------------------------------------------------------------------- /src/hooks/useLifeCycle.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniel-dx/nice-hooks/HEAD/src/hooks/useLifeCycle.js -------------------------------------------------------------------------------- /src/hooks/useSingleInstanceVar.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniel-dx/nice-hooks/HEAD/src/hooks/useSingleInstanceVar.js -------------------------------------------------------------------------------- /src/hooks/useSingleState.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniel-dx/nice-hooks/HEAD/src/hooks/useSingleState.js -------------------------------------------------------------------------------- /src/hooks/useStateCB.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniel-dx/nice-hooks/HEAD/src/hooks/useStateCB.js -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniel-dx/nice-hooks/HEAD/src/index.js -------------------------------------------------------------------------------- /test/dom.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniel-dx/nice-hooks/HEAD/test/dom.js -------------------------------------------------------------------------------- /test/useInstanceVar.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniel-dx/nice-hooks/HEAD/test/useInstanceVar.spec.js -------------------------------------------------------------------------------- /test/useLifeCycle.js.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniel-dx/nice-hooks/HEAD/test/useLifeCycle.js.spec.js -------------------------------------------------------------------------------- /test/useSingleInstanceVar.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniel-dx/nice-hooks/HEAD/test/useSingleInstanceVar.spec.js -------------------------------------------------------------------------------- /test/useSingleState.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniel-dx/nice-hooks/HEAD/test/useSingleState.spec.js -------------------------------------------------------------------------------- /test/useStateCB.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniel-dx/nice-hooks/HEAD/test/useStateCB.spec.js -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniel-dx/nice-hooks/HEAD/webpack.config.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniel-dx/nice-hooks/HEAD/yarn.lock --------------------------------------------------------------------------------