diff options
author | Alexander Kiryukhin <a.kiryukhin@mail.ru> | 2019-08-09 18:46:45 +0300 |
---|---|---|
committer | Alexander Kiryukhin <a.kiryukhin@mail.ru> | 2019-08-09 18:46:45 +0300 |
commit | 89de5607f177cc6541f062253ecfddef6c9f42bc (patch) | |
tree | 7b4322429ab2f4f81f5078a067697fc0e1daedd6 | |
parent | 50d30c674aca3d14762e505e10e813f60aa44ba5 (diff) |
Rename from unstated-next-compose to compose
-rw-r--r-- | package.json | 11 | ||||
-rw-r--r-- | readme.md | 6 |
2 files changed, 10 insertions, 7 deletions
diff --git a/package.json b/package.json index 1e1cddb..34e8014 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "name": "unstated-next-compose", + "name": "compose", "version": "0.0.5", - "description": "Simple compose provider for unstated-next", + "description": "Simple compose provider", "main": "dist/compose.js", "umd:main": "dist/compose.umd.js", "module": "dist/compose.mjs", @@ -9,20 +9,21 @@ "source": "index.js", "repository": { "type": "git", - "url": "git+https://github.com/neonxp/unstated-next-compose.git" + "url": "git+https://github.com/neonxp/compose.git" }, "keywords": [ "unstated", "react", + "context", "state-management", "library" ], "author": "Alexander NeonXP Kiryukhin", "license": "MIT", "bugs": { - "url": "https://github.com/neonxp/unstated-next-compose/issues" + "url": "https://github.com/neonxp/compose/issues" }, - "homepage": "https://github.com/neonxp/unstated-next-compose#readme", + "homepage": "https://github.com/neonxp/compose#readme", "peerDependencies": { "react": "^16.8.6", "unstated-next": "^1.1.0" @@ -1,9 +1,11 @@ -# unstated-next-compose +# compose -Simple provider compose for [unstated-next](https://github.com/jamiebuilds/unstated-next) +Simple provider compose for new [React useContext Api](https://reactjs.org/docs/hooks-reference.html#usecontext), [unstated-next](https://github.com/jamiebuilds/unstated-next) or same. ## Usage +unstated-next: + ``` import React, { useState } from 'react'; import { createContainer } from 'unstated-next'; |