Comments (3)
The merge!
function takes a hiccup data structure, not another DOM node, which is what you're passing in via the render
call.
The render
function creates live DOM nodes and is useful for interop with other JavaScript libraries or if you want to do fancy stuff yourself; you don't need to use it if you are just using merge!
.
I'll leave this open until you can verify the fix, though.
from singult.
Also, just FYI, Singult is a bit low-level---a nicer interface for data<->DOM mapping is provided by C2's bind!
function.
from singult.
Thanks.
It was misuse of merge! merge! and render are working fine when are used properly :)
from singult.
Related Issues (17)
- Default key-fn by index should be specified in JS
- Merge should remove stale attributes and inline styles HOT 3
- Use datastructure hashes to optimize DOM walking
- CLJ Hiccup compatibility layer HOT 3
- Collections are rendered differently than with Hiccup HOT 4
- Should Singult append "px" to numeric values in style map? HOT 2
- <img> tags incorrectly render as SVG elements HOT 2
- More than two classes should be allowed on elements.
- Splice lazy sequences in Hiccup vectors HOT 7
- Throw informative exception when unify is not an only child
- Devised any clever way to handle raw html? HOT 1
- unify key-fn does not accept (cljs) keywords
- Support for attribute namespaces HOT 2
- Tag attributes are not rendered. HOT 1
- JS version not working properly HOT 3
- Singult doesn't recognize svg <animate> element HOT 4
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 singult.