how do i access functions or vard defined in my clojure code in my clojurescript code. ex: clojure code
(def my-db-conn “some conn”)
how can i do the following?
clojurescript code:
clojure.code/my-db-conn
only through macros
but, why would you want to access your db connection in clojurescript? That seems unwise.
if there is an event which i need to presist into the DB the user clicks a button, which kicks off an event that says “Save the user”. I need to save the user in the DB.
from cljs, i don’t know how to pass the data to clojure code to save it in a DB