I'm primarily a Python developer, but I've been trying to learn Clojure/ClojureScript lately. As practice, I want to write a ClojureScript wrapper for Reddit's API.
Most of my confusion is due to the asynchronous nature of Javascript. Since AJAX functions don't actually return the response from the API, how do I write the wrapper so it works somewhat similarly to synchronous server-side requests?
Or is this not possible at all, and I have to use callbacks for each call to the API in my app (and thus a wrapper library would be pointless)?
Are there similar libraries out there I can reference? (Javascript/ClojureScript)