first commit

This commit is contained in:
Alexander Kiryukhin 2019-08-02 00:41:10 +03:00
commit a08fd54e8b
5 changed files with 5702 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
node_modules

10
compose.js Normal file
View file

@ -0,0 +1,10 @@
import { createElement } from 'react';
const Compose = ({ providers = [], children }) => {
if (providers.length < 0) {
return children;
}
return providers.reduce((acc, cur) => createElement(cur, [], acc), children);
}
export default Compose;

1
index.js Normal file
View file

@ -0,0 +1 @@
export { default as Compose } from './compose';

5661
package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

29
package.json Normal file
View file

@ -0,0 +1,29 @@
{
"name": "unstated-next-compose",
"version": "0.0.1",
"description": "Simple compose provider for unstated-next",
"main": "compose.js",
"module": "compose.js",
"repository": {
"type": "git",
"url": "git+https://github.com/neonxp/unstated-next-compose.git"
},
"keywords": [
"unstated",
"react",
"state-management",
"library"
],
"author": "Alexander NeonXP Kiryukhin",
"license": "MIT",
"bugs": {
"url": "https://github.com/neonxp/unstated-next-compose/issues"
},
"homepage": "https://github.com/neonxp/unstated-next-compose#readme",
"devDependencies": {
"microbundle": "^0.11.0"
},
"peerDependencies": {
"react": "^16.8.6"
}
}