Fork me on GitHub
#reagent
<
2016-04-27
>
bostonaholic14:04:07

has anyone integrated reagent with Chart.js?

hjrnunes15:04:33

hi guys, wondering what do people do if they want to render markdown on a cljs app?

hjrnunes15:04:32

there’s markdown-clj, but that outputs an html string. Not quite sure how to make it work with reagent?

fabrao17:04:29

@hjrnunes: I think you can parser and use into DOM element with innerHTML.

mikethompson18:04:57

@bostonaholic: not specifically Chart.js, no, but you may find this tutorial useful: https://github.com/Day8/re-frame/wiki/Using-Stateful-JS-Components

mikethompson18:04:58

@hjrnunes: if you have a string containing HTML, you do this:

[:div  {:dangerouslySetInnerHTML {:__html "<b>Hello</b>"}]]

bostonaholic19:04:28

@mikethompson: thanks, I’ll take a look