UNPKG

react-rooks

Version:

Store management for React and React Native with simple hooks !

10 lines (9 loc) 285 B
import * as React from "react"; export const RookContainer = ({ rooks, children }) => { let contained = children; rooks.reverse().forEach((Rook) => { contained = React.createElement(Rook, null, contained); }); return contained; }; export default RookContainer;