UNPKG

react-elfsight-reviews

Version:

A lightweight React component to embed Elfsight Google Reviews widgets with lazy script loading and one-time injection.

7 lines (6 loc) 323 B
import { jsx as _jsx } from "react/jsx-runtime"; import { useElfsightScript } from '../hooks/useElfsightScript'; export const GoogleReviews = ({ id, className }) => { useElfsightScript(); return (_jsx("div", { className: [id, className].filter(Boolean).join(' '), "data-elfsight-app-lazy": "first-activity" })); };