Skip to content

v0.9.6

@FND FND tagged this 04 Jul 10:27
this ensures predictable arguments for macro implementations:

    <list-group>
        {["foo", "bar", "baz"].map(item => {
            return <span>{item}</span>;
        })}
    </list-group>

    registerMacro("list-group", (_, ...items) => {
        return <ul>
            {items.map(item => {
                return <li>{item}</li>;
            })}
        </ul>;
    });

otherwise the list-group macro would have to flatten `items` itself
Assets 2
Loading