el function - class names do not require period after initial class #508
data-handler
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been using redom for several years and just discovered (quite by accident) that after specifying the initial class / id when using the el function, subsequent classes do not require a period in order for them to be generated correctly.
e.g. this:
el('.card.h-100.border.border-0')
and this:
el('.card h-100 border border-0')
both create this:
<div class="card h-100 border border-0">
Is this by design?
It's easier (and more akin to writing html) not to have to enter a period for each class
Beta Was this translation helpful? Give feedback.
All reactions