aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kiryukhin <a.kiryukhin@mail.ru>2019-08-02 00:57:12 +0300
committerAlexander Kiryukhin <a.kiryukhin@mail.ru>2019-08-02 00:57:12 +0300
commit93d2c42770e3a28fde093298e5b1dda8d5aad4ca (patch)
treec812086a5754d30661d6c142d6ee6db02f23c8f3
parent44efc9035ab693aab9d8e0bf389a8973c36bab2d (diff)
Fix package 2
-rw-r--r--compose.js4
-rw-r--r--package.json4
2 files changed, 4 insertions, 4 deletions
diff --git a/compose.js b/compose.js
index b520983..3c0d68d 100644
--- a/compose.js
+++ b/compose.js
@@ -1,10 +1,10 @@
-import { createElement } from 'react';
+import React from 'react';
const Compose = ({ providers = [], children }) => {
if (providers.length < 0) {
return children;
}
- return providers.reduce((acc, cur) => createElement(cur, [], acc), children);
+ return providers.reduce((acc, cur) => React.createElement(cur, [], acc), children);
}
export default Compose; \ No newline at end of file
diff --git a/package.json b/package.json
index 8262b34..984ecb9 100644
--- a/package.json
+++ b/package.json
@@ -1,12 +1,12 @@
{
"name": "unstated-next-compose",
- "version": "0.0.1",
+ "version": "0.0.3",
"description": "Simple compose provider for unstated-next",
"main": "dist/compose.js",
"umd:main": "dist/compose.umd.js",
"module": "dist/compose.mjs",
"unpkg": "dist/compose.umd.js",
- "source": "compose.js",
+ "source": "index.js",
"scripts": {
"build": "microbundle",
"dev": "microbundle watch"