Skip to content
Andre R edited this page Dec 14, 2016 · 2 revisions

Welcome to the sablono wiki!

Printing output of React

In browsers with Symbol available you cannot print the evaluated React.createElement output. To do so add:

(when (exists? js/Symbol)
  (extend-protocol IPrintWithWriter
    js/Symbol
    (-pr-writer [sym writer _]
      (-write writer (str "\"" (.toString sym) "\"")))))
Clone this wiki locally