blob: 3c0d68db80ece62237604dd6be33d4cff8f7fcab (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
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;
|