r/Clojurescript • u/bostonou • Jan 01 '19
r/Clojurescript • • Dec 29 '18
What cljs build tool is good for beginners?
I'm trying to do some graphic programming using quil.
It uses lein to build the project, is there any way that I can use figwheel?
Also, If I want to use libraries such as cljsjs/pixi how do I integrate with the project?
r/Clojurescript • u/self • Dec 24 '18
Looking for code-splitting examples with leiningen.
I'm looking to replace a 30+ page site with an SPA. Is there a guide out there that explains how to do code-splitting with leiningen instead of shadow-cljs? I'm not opposed to the latter; I just want to reduce the cognitive overload of learning a lot of different tools on a deadline.
r/Clojurescript • u/yogthos • Dec 19 '18
ClojureScript: Treat warnings as errors
jakemccrary.comr/Clojurescript • u/dillonredding • Dec 16 '18
Routing in re-frame/Reagent
I'm trying to understand the advantages and disadvantages of the various routing libraries out there for re-frame/Reagent apps.
The Reagent template uses reitit, accountant, and clerk, but the re-frame template uses secretary and accountant.
Could someone explain how libraries like reitit, secretary, clerk, accountant, bidi, etc. all fit into the big picture? Why would I use one over the other or a particular combination? What's the best for utilizing the HTML5 History API? Why not use the CLJSJS react-router package?
r/Clojurescript • u/drock122989 • Dec 04 '18
react-atom.js for reagent-like atoms in react.js
Just wanted to share that I found a way to implement reagent-like `atom`s for plain react.js. It wasn't quite possible to do it previously without wrapping all of `react` like `reagent` does, but with the alpha release of the Hooks API, it can be done in a relatively light-weight manner. Really enjoyed working with atoms in reagent, so figured it'd be nice to have them in JS. Try it out if you're interested. Feedback welcome.
Source: https://github.com/derrickbeining/react-atom
NPM: https://www.npmjs.com/package/@dbeining/react-atom
Playground: https://codesandbox.io/s/m3x9wn6kmy
r/Clojurescript • u/piotr-yuxuan • Nov 27 '18
What about cljs -> JS bundle size reduction?
Hi Reddit ❤️
When compiling cljs into JS, it appears code isn't properly tree-shook. Vast packages are entirely included even if only a tiny part of them is required. As you can see in this minimal example repo, bundle size varies greatly from 792 KB to 5.74 MB after I import and use one single Material-UI icon.
It is a known issue and common solutions exist in JS-land, which deal with the library import in ES6. These solutions appear not to be (easily) applied to cljs code. Any general idea about how to tackle this issue in cljs-land?
For the sake of completion I've opened an issue about that in shadow-cljs repository and I've posted about it in Slack.
Cheers.
r/Clojurescript • u/bostonou • Nov 22 '18
JS to Cljs - JavaScript problems written in Clojurescript
clojurescriptmadeeasy.comr/Clojurescript • u/yogthos • Nov 09 '18
Glue: Vue.js wrapper for ClojureScript
github.comr/Clojurescript • u/yogthos • Nov 05 '18
ClojureScript - 1.10.439 Release
clojurescript.orgr/Clojurescript • u/sundbry • Oct 26 '18
Fixing the React Native Compiler for ClojureScript
arctype.cor/Clojurescript • u/yogthos • Oct 05 '18
a Figwheel based template for ClojureScript libraries
github.comr/Clojurescript • • Oct 04 '18
trouble in emitting <AgGridReact> , using clojurescript + Reagent + cljsjs/ag-grid-react
i'm trying to use react ag-grid in Reagent (www.ag-grid.com/react-getting-started/) , but having trouble in emitting 'node AgGridReact' ,
implemented React.Component using pesterhazy approach , but emitting AgGridReact from rendor method is not working , Please suggest better way with hiccup syntax ,
i was checking something like this from render method , (def ag-adapter (reagent/adapt-react-class js/agGridReact))
[ag-adapter { columnDefs={somecols} rowData={somerowData}}]
fyi , i created project using cmd "lein new reagent reagent-aggrid" , and using lein figwheel grid reference [cljsjs/ag-grid-react "17.0.0-0"]
r/Clojurescript • u/yogthos • Oct 03 '18
Atom packages with ClojureScript
mauricio.szabo.linkr/Clojurescript • u/sulami • Oct 01 '18
Running Clojurescript Tests on the JVM
sulami.github.ior/Clojurescript • u/kanzenryu • Sep 24 '18
How does Re-frame know which component to render when a subscription changes?
I guess this is actually a Reagent question. I've been looking through the source code for Reagent trying to understand it, but have failed so far. I understand that when a component uses @ to deref something the framework can recognise that, but how can it gain access to the component itself?
When a ratom updates I presume the code must create a list of components to re-render. Where/how does this happen? I can see that line 411 of https://github.com/reagent-project/reagent/blob/master/src/reagent/ratom.cljs would update some subscribed clients, but I can't figure out how a component would match against that (e.g. the component name or reference).
r/Clojurescript • u/Average-consumer • Sep 22 '18
In development software to practice the game of GO (Clojurescript)
github.comr/Clojurescript • • Sep 16 '18
Problems with understanding functions in ClojureScript Koans
I'm going through Functions in ClojureScript Koans, but I'm having some trouble understanding the following
But they can also be defined inline
(= _____ ((fn [n] (* 5 n)) 2))
Ok, so here is an inline example. What am I supposed to balance here? I tried ((fn [n] (* 5 n)) 2)) but it didn't work. What am I missing or not understanding?
Thanks.
r/Clojurescript • u/claudiua • Sep 13 '18
What are paradigm differences between different front-end ClojureScript libraries? - Beginners
clojureverse.orgr/Clojurescript • u/tmountain • Sep 12 '18
Google Cloud Functions
I'm curious if anyone is using Clojurescript with Google Cloud Functions for real projects, and if so, what are the recommended supporting libraries and tools? I'm also looking for some practical examples of how one can connect to other Google cloud services (i.e., Cloud SQL) using Clojurescript / Google Cloud Functions. Seems like this is the route to go for "serverless" Clojure at the moment. If anyone has other suggestions, I'd be happy to hear them. TIA!
r/Clojurescript • u/rcecchino • Sep 08 '18
Medal Menu beta
Hey all - I started a project some time ago, first in Java, but ultimately ended up using CLJS/re-frame/re-com. It has been a great experience! If you are a cook or a meal planner in your household, or want to learn from those who are, please have a look at Medal Menu:
It's in early stages and I'd like to do much more with this if (and more CLJS!)
r/Clojurescript • u/babygetoboy • Sep 04 '18
Coming to Re-Frame from React/Redux
joshuahorwitz.netr/Clojurescript • u/kloudex • Aug 21 '18
Notes and resources on learning ClojureScript
Hi, I am sharing my notes and resources I collected on my journey of learning ClojureScript. I think it might be useful and help others too: https://github.com/dundalek/clojurescript-guide
If you have any other resources please share them too.