next-elfsight-widget
v1.1.1
Published
The right way to add Elfsight Widget to your NextJS App
Downloads
1,291
Readme
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 'next-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.