import React from "react"; interface Props { shouldUpdate: boolean } export const LazyView: React.FC = (props) => { const { shouldUpdate, children } = props; if (!shouldUpdate) return <>; return <>{children}; };