re-frame

https://github.com/Day8/re-frame/blob/master/docs/README.md https://github.com/Day8/re-frame/blob/master/docs/External-Resources.md
bastilla 2020-11-08T09:44:39.293400Z

Hey @p-himik Thanks for responding! Well, yes and no. I know but not from the top of my head. I need to look up the details. I am pretty sure I could implement it in plain JS in like 15 minutes. And I am sure could do it in Python in like 15 minutes - and I don't know Python - since it's easy to find the docs.

uosl 2020-11-08T10:47:11.293700Z

You do it the same way as you do with JS. Just use ClojureScript's JS interop https://cljs.info/cheatsheet/

uosl 2020-11-08T10:52:59.294Z

Only difference is with re-frame, you'd probably have the fetch function (i.e. the HTTP POST) as an effect called from an event handler (ex. https://github.com/day8/re-frame-http-fx). The process of creating formdata and passing it onto the body of the POST is the same though.

uosl 2020-11-08T11:10:17.294300Z

And yes, you won't be able to search for specific problems and find snippets ready for copy-and-paste with Clojure, as you can with the mainstream languages. You're kind of on your own to put the pieces together, but don't worry as this is a skill you'll get better at with practice!

bastilla 2020-11-08T12:36:53.294500Z

thanks so far guys. I'll post my solution.

1👍
p-himik 2020-11-08T13:51:38.294800Z

I use re-frame-http-fx and in the :body parameter I put a manually created js/FormData.

1👍