Fork me on GitHub
#squint
<
2022-11-25
>
krapjost14:11:12

Hello community! I want to make wrapper library for solid.js as like helix or uix for react for hobby project. In my first thought, It can be done by just write clojure macros that transpiles cljs code to js code that fits solid.js syntax. And i found squint and it's demo solid.js app. I'm curious about squint's different approach in mutabillity is better for which occasion. through plain cljs's build output can't achieve what i trying to do? Also can i use both squint compiler and plain cljs compiler on the same cljs file? And it just build different js output?

borkdude14:11:05

@krapjost squint uses cljs syntax to let you write JS, that's the thought. and the stdlib contains many functions that are similar to cljs, so in a lot of cases you don't have to think too much when converting code. There is also #C03QZH5PG6M which does support the CLJS data structures. Almost the same as squint, but it re-uses the CLJS stdlib

borkdude14:11:45

Both squint and cherry support #jsx to let you write JSX directly without any libraries