Fork me on GitHub
#re-frame
<
2021-04-15
>
yiorgos13:04:35

Hi guys, I just started to learn re-frame and I was wondering if it is possibly for re-frame to render html code that I have stored in the database in the view

yiorgos14:04:10

when I do in the view [:div [show-content]] it shows the raw html as text

p-himik14:04:21

This is a question about React in general. Re-frame doesn't render anything, and Reagent just delegates rendering to React. https://github.com/reagent-project/reagent/blob/master/doc/FAQ/dangerouslySetInnerHTML.md

yiorgos14:04:03

Thank you very much! I’ll have a look

yiorgos14:04:24

sweet, it worked!

👍 3