Is there a way to insert HTML as a string into the MongoDB and then get it in react app and put it in component as html? I've tested DomParser in js but It did not work.
2 Answers
You can try dangerouslySetInnerHTML https://reactjs.org/docs/dom-elements.html#dangerouslysetinnerhtml
1 Comment
Vitaliy Rayets
Awesome))It's work