squint

Takis_ 2024-12-27T22:30:43.743029Z

i want to use squint with react i saw an example vite-react and looks nice, i will be able to use next.js also from squint? is there any example? my goal is to just use JS libraries with squint no reagent,reframe etc, JS is fine for me if i write it from a LISP syntax like squint

martinklepsch 2024-12-28T13:51:46.135729Z

If you use a vite based framework you can use a simple squint plugin like this: https://github.com/squint-cljs/squint/discussions/464 There are some unsolved problems like HMR with this approach but it allows you to not run an additional compiler process and also does not create any compiled files in your source directories. Alternatively you can just use squint CLI to compile .cljs to JS and any framework you use can pick up on those generated JS files.

borkdude 2024-12-27T22:34:05.805759Z

Yes, that's the main use case for squint :)

borkdude 2024-12-27T22:34:53.537639Z

I don't have any next.js examples so far

Takis_ 2024-12-27T22:38:38.915749Z

i am not in a hurry to use next.js , i just hope to be able to use it from squint in the future, for now learning react, thank you borkdude : )

👍 1