Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Display rich text

Simple question, I'm actualy fetching rich text from strapi and want to display it inside a div right after, but the text is just normal text after putting it in,I want it to stick to its format that I had on strapi, how can I do that ?

It seem to be possible using Markdown, I don't know why but after fetching using axios my strapi contentful or dangerouslySetInnerHTML doesnt work

like image 442
Virgil Nauleau Avatar asked Oct 16 '25 13:10

Virgil Nauleau


1 Answers

It seem to be possible using Markdown, I don't know why but after fetching using axios my strapi contentful or dangerouslySetInnerHTML doesnt work but markdown package worked fine !

like image 187
Virgil Nauleau Avatar answered Oct 18 '25 06:10

Virgil Nauleau



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!