re-frame

https://github.com/Day8/re-frame/blob/master/docs/README.md https://github.com/Day8/re-frame/blob/master/docs/External-Resources.md
Richie 2021-05-20T22:44:52.013200Z

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)

superstructor 2021-05-21T08:17:39.016200Z

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.

superstructor 2021-05-21T08:18:21.016400Z

It is alpha for reasons though; known bugs and dragons abound.

Richie 2021-05-21T15:08:49.016600Z

Thank you!

p-himik 2021-05-20T22:47:17.013300Z

To make sure we're not victims of the XY problem - why do you want to do it in the first place?

Richie 2021-05-20T22:51:06.013500Z

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.

Richie 2021-05-20T22:52:33.013700Z

I’m referring to what I see when I print with js/console .

Richie 2021-05-20T22:53:05.013900Z

You’re right, this may not even solve my problem.

p-himik 2021-05-20T23:26:15.014400Z

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.