|
|
|
|
|
by mej10
3808 days ago
|
|
It seems like the setup I use is pretty similar to Om Next, but via independent libraries. I am looking forward to seeing the finished Om Next to compare. ClojureScript is shaping up to be a fantastic way to program browser-based applications. This is what I use: * Reagent -- another ClojureScript React wrapper * Datascript -- An in-memory database with datalog query lang, this is used as the central store for all application data. * Posh -- Datascript transaction watcher that updates Reagent components when their queries' return data changes * core.async -- used for handling any kind of event dispatch and subscription. I do a unidirectional data flow type thing and it only took like 15 lines of ClojureScript. This is one of the nicest front end development experiences I've had. Just the composition of these four libraries gives you a ton of flexibility and a good way to structure your application. You can use this setup to write a real-time syncing/fetching system with a backend database pretty easily. |
|