🧩 Plasmo Developers�PD
🧩 Plasmo Developers15mo ago
7 replies
Tikaï

Pass custom props to CSUI component

Hello,

Because I am generating multiple plasmo-csui within getInlineAnchorList and fetching data in it, I would like to cache that data and maybe pass it as props to the react csui component.

The data will be fetched asynchronously

I did try to follow this doc https://docs.plasmo.com/framework/content-scripts-ui/life-cycle#custom-renderer

But unfortunately, the snippet is always returning me this error.

Is there a way to pass props to the react component?
Plasmo Docs
Plasmo's CSUI orchestrates a lifecycle dedicated to mounting and unmounting your React, Vue, or Svelte components in a content script.
Life Cycle of Plasmo CSUI – Plasmo
Was this page helpful?