UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

15 lines (14 loc) 429 B
import { jsx as e, Fragment as r } from "react/jsx-runtime"; import i from "../utils/VisibilityObserver.js"; import { Component as n } from "react"; class m extends n { render() { return /* @__PURE__ */ e(i, { renderInView: this.getChildren }); } getChildren = () => /* @__PURE__ */ e(r, { children: this.props.children }); } export { m as RenderIfInView, m as default }; //# sourceMappingURL=RenderIfInView.js.map