From 93d2c42770e3a28fde093298e5b1dda8d5aad4ca Mon Sep 17 00:00:00 2001 From: Alexander Kiryukhin Date: Fri, 2 Aug 2019 00:57:12 +0300 Subject: Fix package 2 --- compose.js | 4 ++-- package.json | 4 ++-- 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" -- cgit v1.2.3