Fork me on GitHub
#reagent
<
2017-10-28
>
emccue00:10:04

I finished making my own reagent like framework for regular JavaScript

emccue00:10:45

It lacks reg-event-fx, but other than that I am pleased with the interface

emccue00:10:47

Nowhere near as beautiful as clojureland but a job is a job

grav21:10:01

According to this pr: https://github.com/reagent-project/reagent/pull/308, Reagent supports React 16. However, since React 16 is not on cljsjs, I’m not sure how I require it? Via a script tag?

grav21:10:26

(the 0.8.0-alpha2 still ships with React 15.x)

grav21:10:29

oh sorry, it seems 16.0.0-0 is on cljsjs, it’s just not listed on the cljsjs page.

grav21:10:19

Had to go here to discover it - but it’s just a matter of doing

[reagent "0.8.0-alpha2"]
  [cljsjs/react "16.0.0-0"]
  [cljsjs/react-dom "16.0.0-0"]
in the project.clj, and then React.version in the browser evaluates to "16.0.0". Edit: react-dom is required. And apparently Error Boundaries work out of the box, which is pretty cool!