Fork me on GitHub
#reagent
<
2016-07-07
>
johanatan19:07:24

@pesterhazy: as-element and reactify-component are both resulting in an entity which does not have a render defined.

johanatan19:07:30

@pesterhazy: "Warning: Component(...): No render method found on the returned component instance: you may have forgotten to define render in your component or you may have accidentally tried to render an element whose type is a function that isn't a React component."

pesterhazy19:07:04

Try passing an anonymous fn, I.e. #(as-element ...)

johanatan19:07:35

I'm not passing anything. I'm exporting some things from a node module

johanatan19:07:50

And those are being pulled in via require

johanatan19:07:15

So, you're suggesting that (def ^:export anon #(r/as-element ... )) is somehow better than: (defn ^:export element [] (r/as-element ...)) ?

pesterhazy19:07:33

No that should be identical

pesterhazy19:07:31

Sorry, don't know what's going on then

johanatan19:07:41

No worries. Thx for the help

johanatan21:07:30

Don't think it applies here

johanatan22:07:42

Anybody have success with this?

johanatan22:07:08

I generated project successfully but when I do "lein figwheel" it just sits there waiting for browser to connect

johanatan22:07:17

even though I'm hitting it with my browser.

johanatan22:07:38

And this error appears in the browser: GET 404 (Not Found)