Fork me on GitHub
#clojurescript
<
2023-04-08
>
Lemonski17:04:31

I am pretty new to Everything Clojure related so i am sorry if this is a stupid questions, but is there a way to use Clojurescript without Reagent/Re-Frame therefore without React?

👍 2
2
p-himik17:04:29

Yes, of course. Those are just libraries, you are free not to use them.

p-himik17:04:56

BTW you can use CLJS without Reagent and re-frame but with React - there are some wrappers, and there's always interop (albeit in the case of React the interop would get quite tedious and wordy).

seancorfield17:04:00

Web/MX is a new cljs option that avoids React. See #CKCBP3QF9 channel for more info on that. I think there have been a few other non-React options over the years...?

🙏 2
Joseph Graham18:04:07

By chance I am writing an article about this today! Still WIP but for if you want very basic Clojurescript with no framework at-all: http://readtheorg.xylon.me.uk/rr_clojurescript_lein-cljsbuild.html

kennytilton00:04:08

1. I once did a snazzy Web app utility for work: a Clojure app serving Hiccup-generated HTML over a wire. 2. I could have sworn I saw a starter shadow-cljs project that was just Hiccup/HTML, but I cannot find it after a short search. 3. And I myself am just now documenting/polishing what is actually a fairly mature library that just does HTML, but it also involves an all-encompassing reactive (not React!) layer. Great fun, but maybe not what you want. Live overview is here https://kennytilton.github.io/web-mx-quickstart/#/, the lib itself here: https://github.com/kennytilton/web-mx#readme 4. Any interest in Clojure_Dart_? And Flutter? The CLJD crew has nice support for Flutter, and I have ported web/mx to Flutter/MX: https://github.com/kennytilton/flutter-mx That is having a couple months of bit rot cleaned up -- well, CLJD dashed ahead while was not looking, and then I will be doing more doc/tutorials with that. Have fun! ps. #CVB8K7V50 might be worth a look.

kennytilton00:04:30

Btw, pending better doc, if @U01EENTKD0C or anyone would like help onboarding either web/mx or flutter/mx just DM me and we'll you get going.

Joseph Graham05:04:10

Not my thread but wow, didn't know about these things @U0PUGPSFR. Maybe I'll try one out since I ran into a lot of problems when I tried reagent/re-frame.

kennytilton08:04:59

"wow, didn't know about these things" Heh-heh, @U043HLWSYUQ, not your fault! I only recently decided to hawk my MX-wrapped UIs, and I still need to write more doc. Reagent/re-frame are splendid but, after a couple contracts supporting systems built on them, and after a closer look at Vuex and SolidJS, I thought MX might have something important to add to the state management conversation. I made one unsatisfactory attempt at a Web/MX https://github.com/kennytilton/mxweb-trainer, starting another tomorrow based on Flutter/MX. The interestiing things to grok are the same web, flutter, or react/rn (POC only), so as long as one is just reading either works. Feel free to DM if you get stuck!

James Amberger21:04:27

Anyone have any suggestions for implementing a typeahead input, preferably with fuzzy matching, over a statically known list of options? external lib, react lib, acceptable. Thanks for everyone's insight