-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
Currently, we can pass child tags as either singletons, or as lists. It would be nice if we could pass splats as well.
R.h1 "Hello"
R.h2 {class: 'red'}, "world"
R.p [
"Lorem Ipsum "
"dolor sit amet"
"consecteteur"
]
It would be nice if we could pass child tags as splats:
R.p "Lorem Ipsum", "dolor sit amet", consecteteur"
This is especially useful because it reduces the visual clutter when writing vanilla JS instead of CoffeeScript, as one no longer needs to include square brackets on top of the (now required) parentheses:
R.p("Lorem Ipsum", "dolor sit amet", consecteteur")
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels