These are chat archives for ThoughtWorksInc/Binding.scala

28th
Oct 2016
deontologic
@deontologic
Oct 28 2016 00:15
One more question :)
React has the dangerouslySetInnerHTML property, which lets one set inner html directly.
How would one accomplish similar with this library?
For example, I'm using katex to render math. They only expose two methods: render(latex, element), and renderToString(latex).
杨博 (Yang Bo)
@Atry
Oct 28 2016 01:19
<div innerHTML={renderToString(latex)}></div>
Or
val div = <div></div>
render(latex, div)
div
deontologic
@deontologic
Oct 28 2016 16:24
Thanks! I feel like a noob.
Didn't think the innerHTML attribute even existed