UNPKG

use-history-state

Version:

`use-history-state` is replacement for `useState` that stores the state within the history state.

40 lines (39 loc) 1.08 kB
{ "name": "use-history-state", "version": "0.1.5", "license": "MIT", "description": "`use-history-state` is replacement for `useState` that stores the state within the history state.", "keywords": [ "React", "state", "history", "hooks" ], "repository": { "type": "git", "url": "https://github.com/Ayc0/useHistoryState.git" }, "bugs": "https://github.com/Ayc0/useHistoryState/issues", "source": "src/index.ts", "homepage": "https://codepen.io/ayc0/pen/rRXPgO", "author": { "name": "ayc0", "url": "https://stuff.ayc0.pw/" }, "main": "dist/useHistoryState.js", "module": "dist/useHistoryState.es.js", "unpkg": "dist/useHistoryState.umd.js", "types": "dist/index.d.ts", "scripts": { "prepare": "yarn -s build", "build": "microbundle --globals react=React --name use-history-state", "dev": "microbundle watch --globals react=React --name use-history-state" }, "peerDependencies": { "react": "^16.8.0" }, "devDependencies": { "@types/react": "^16.8.10", "microbundle": "^0.11.0" } }