1.0.0 • Published 2 years ago
next-elfsight-widget v1.0.0
next-elfsight-widget
Wrapper over react-elfsight-widget that adds Elfsight Widget to a NextJS App t dynamic.
This package DOES NOT contain any Elfsight Widgets itself.
Installation
npm install next-elfsight-widget
Usage
import React from 'react';
import { ElfsightWidget } from 'react-elfsight-widget';
function Component() {
return <ElfsightWidget widgetID="6f4fc62b-74c9-45da-87fa-b71eda360cc0" />;
}
NOTE: There is no need to manually add Elfsight's platform.js
script to a page, the component will do it for you.
But if you already have it on the page, it's okay, the script won't be added twice.