I was using the rich text component , it’s awesome but I was wondering if I could render anything else than plain html with it. I would like to render directly a React Component and not only its html output.
We could probably fork your @contentful/rich-text-html-renderer to render custom react component instead of html. Do you have any recommandation ?
My use case is that if I want to render a complex React component with a state, some logic inside it, it will not work properly with your default render method since you are expecting a pure HTML string as a return. I would like to use contentful to have a set of component available and to build my custom template/landing page with it.
So just to summarize, I would like to render my own React Component instead of static html, do you have a library for that or should we build our own tree parser ?
Plus, is it possible to make
@contentful/rich-text-html-renderer public on github ?