Hey. I’m interested in using simple-render
from re-frame-10x
but I don’t know how to require it.
The usual doesn’t work.
(ns <http://my.app|my.app>
(:require [day8.re-frame-10x.components.cljs-devtools :as cljs-devtools]))
(cljs-devtools/simple-render)
Neither does this.
(day8.re-frame-10x.components.cljs-devtools/simple-render)
Yeah I've done major refactoring on master; the api is probably a bit cleaner now but you'd need 1.1.0-alpha2
to use the ...components.cljs-devtools
ns.
It is alpha
for reasons though; known bugs and dragons abound.
Thank you!
To make sure we're not victims of the XY problem - why do you want to do it in the first place?
I wanted to stick the cljs devtools output in my app. I found a thread that pointed to re-frame-10x since devtools itself doesn’t output html. It’s some format specific to the browser.
I’m referring to what I see when I print with js/console
.
You’re right, this may not even solve my problem.
I see.
So where did you get the day8.re-frame-10x.components.cljs-devtools
namespace? At least in the 1.0.1 version of re-frame-10x namespace that has simple-render
is day8.re-frame-10x.view.components
.