strapi / blocks-react-renderer

A React renderer for the Strapi's Blocks rich text editor
Other
162 stars 25 forks source link

[feat]: render in a react server component #33

Closed martijnmichel closed 7 months ago

martijnmichel commented 7 months ago

Render custom blocks on the server, for instance with nextjs server components. Adding custom headings

Screenshot 2024-04-15 at 07 57 26

gives me this error?

Screenshot 2024-04-15 at 07 58 20
benmgreene commented 4 months ago

Hi there - was this enhancement actually completed? Having difficulty seeing where it was done. Thanks!

martijnmichel commented 4 months ago

I'm not sure, it's been a while since I posted. Actually I remember duplicating this codebase and fixing the problem internally. If you like I can freshen up my mind and lookup how I've fixed it.

ancashoria commented 3 months ago

@martijnmichel it would be nice to have it render in a server component.

martijnmichel commented 3 months ago

I copied the codebase of this repo and changed the defaultComponents manually..