compose/compose.js
Alexander Kiryukhin 93d2c42770 Fix package 2
2019-08-02 00:57:12 +03:00

10 lines
257 B
JavaScript

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