YEXT Video Component for React

Hello,

Is there possibly a YEXT video component for react, if not in which manner can I pull it in from the KG for pages?

Thanks

Hi Mariska,

There is no built-in React component for videos.

In terms of storing them in Content, you have two options:

  1. Store them in the native videos field
  2. Create a custom field (e.g. c_videoUrl), of type single-line text, and store a URL for a publicly-accessible video there.

From there, you can fetch either field via the Stream definition in your templateConfig. You will need to set up an iframe embed for the video - I recommend lazy loading to ensure this doesn’t impact page performance.

In terms of creating the embed, each video provider typically offers their own instructions. Here’s YouTube’s, for example.

Best,
Luc

1 Like