immersivity_react
Version:
Immersivity React wrapper. Feel the depth.
8 lines • 539 B
JavaScript
import React from "react";
import { ParallaxContainer } from "./ParallaxContainer";
import { Div } from "./Div";
export var ParallaxList = function (props) {
var _a = props.List, List = _a === void 0 ? Div : _a, _b = props.Container, Container = _b === void 0 ? ParallaxContainer : _b, _c = props.children, children = _c === void 0 ? [] : _c;
return (React.createElement(List, null, children.map(function (child, idx) { return (React.createElement(Container, { key: idx }, child)); })));
};
//# sourceMappingURL=ParallaxList.js.map