diff options
author | Alexander Kiryukhin <a.kiryukhin@mail.ru> | 2019-08-02 00:57:12 +0300 |
---|---|---|
committer | Alexander Kiryukhin <a.kiryukhin@mail.ru> | 2019-08-02 00:57:12 +0300 |
commit | 93d2c42770e3a28fde093298e5b1dda8d5aad4ca (patch) | |
tree | c812086a5754d30661d6c142d6ee6db02f23c8f3 /compose.js | |
parent | 44efc9035ab693aab9d8e0bf389a8973c36bab2d (diff) |
Fix package 2
Diffstat (limited to 'compose.js')
-rw-r--r-- | compose.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |