aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kiryukhin <a.kiryukhin@mail.ru>2019-08-09 18:46:45 +0300
committerAlexander Kiryukhin <a.kiryukhin@mail.ru>2019-08-09 18:46:45 +0300
commit89de5607f177cc6541f062253ecfddef6c9f42bc (patch)
tree7b4322429ab2f4f81f5078a067697fc0e1daedd6
parent50d30c674aca3d14762e505e10e813f60aa44ba5 (diff)
Rename from unstated-next-compose to compose
-rw-r--r--package.json11
-rw-r--r--readme.md6
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"
diff --git a/readme.md b/readme.md
index 43665c5..1c4f42e 100644
--- a/readme.md
+++ b/readme.md
@@ -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';