Comments (1)
It looks like you're missing the arg vector in your defn, should be:
(defn test [e] (node [:p "test"])))
Also, node
only creates the node. If you want to add it to the dom, you'll need to use something like dommy/append!
.
from dommy.
Related Issues (20)
- set-class! returns the class name instead of the element
- Listening to js/window :load breaks with :advanced optimizations
- html2hiccup
- HTML to Hiccup
- dommy breaks when Polymer is in use HOT 9
- Add support for Custom Elements HOT 12
- Tests broken in Firefox with attr/style
- Any plan to cut a release? HOT 3
- Android 4.0 stock browser compatibility with Dommy? HOT 1
- Listen to keypress HOT 1
- Request for CLJS version doc HOT 7
- Compilation warnings on Clojure 1.7 HOT 10
- Huge number of warnings HOT 1
- append! requires a DOM node, documentation says otherwise HOT 1
- Delegated event handling
- Tagged releases
- Prose documentation HOT 2
- Length of children HOT 2
- interested in a dispatch! function?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dommy.