Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FReactive from DOM #57

Open
karneaud opened this issue Jul 19, 2016 · 0 comments
Open

FReactive from DOM #57

karneaud opened this issue Jul 19, 2016 · 0 comments

Comments

@karneaud
Copy link

can I implement this framework by using a DOMElement rather than hiccup syntax for the view/ item view? This would be similar to template from markup syntax

e.g. ( sorry if clojure syntax is bad. I'm new to clojure)

(defn view []
  (.-getElementById js/document :#view)
// ..... append stuff/ add classes yada yada 
)

(defonce root (dom/append-child! (.-body js/document) [:div#root]))

(dom/mount! root (view))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant