4 ms·
Do you have any links/resources for using React with ClojureScript?
by pknopf 8y ago
Do you have any links/resources for using React with ClojureScript?
- l_t 8y agoThere are a couple Clojurescript interfaces to React: Om (https://github.com/omcljs/om https://github.com/omcljs/om) and Reagent (https://reagent-project.github.io/ https://reagent-project.github.io/) are two I'm familiar with. For an example of how a Clojurescript project would be built using these libraries, I'd recommend checking out re-frame: https://github.com/Day8/re-frame https://github.com/Day8/re-frame
- ilikehurdles 8y agoEasy 3 step process: 1. Assuming you have leiningen installed, run `lein new figwheel hello-world -- --reagent` and follow the instructions in the output 2. Follow along with https://reagent-project.github.io/ https://reagent-project.github.io/ 3. Enjoy a nice, refreshing beverage.
- jwr 8y agoOne point about libraries: I would recommend starting up with Reagent, as it has a simple and fairly intuitive model, and then moving on to Rum, which allows you to do anything, while being small and elegant. I do not recommend Om for starting.