aboutsummaryrefslogtreecommitdiff
path: root/compose.js
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 /compose.js
parent44efc9035ab693aab9d8e0bf389a8973c36bab2d (diff)
Fix package 2
Diffstat (limited to 'compose.js')
-rw-r--r--compose.js4
1 files changed, 2 insertions, 2 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