The simplest way to get started is by using our official React Instagram widget component. This is a lightweight wrapper around our core web component, and let’s you drop an embedded widget right into your React code.
It has zero dependencies and is fully typed. Compatible with Next, Astro, Gatsby, Remix, etc.
The Behold React component has a single required property: feedId, which can be found by opening your widget feed in the Behold dashboard and clicking on Embed Code.
All configuration and customization is handled in the Behold admin. When you make changes there it will automatically update your widget, no code modifications required. Because of browser caching, changes can take a minute or two to show up. Clearing your cache and incognito/private windows will help.
This component relies on client-only APIs and won’t be pre-rendered by SSR or SSG. That means there will be a moment before it renders where its height will be 0px. You can prevent layout shifts this may cause by applying dimensions to a container element with CSS.