TheKnarf / isomorphic-jsx

A JSX-powered templating library for building multi page websites.
MIT License
13 stars 2 forks source link

Add support for attributes with array values #38

Open LewsTherinTelescope opened 1 year ago

LewsTherinTelescope commented 1 year ago

If an array is passed, it will join the values together with a space, for compatibility with the class attribute. For example, class={['class1', 'class2', 'class3']} will now become class="class1 class2 class3".