Closed prevwong closed 8 months ago
Currently, it's kinda awkward when we want to merge a prop's value with another value. For example:
component Button(text) => ( <button text={"Button ->" + text} )
Perhaps, we could make this easier by introducing a merge directive:
merge
component Button(text) => ( <button text={"Button ->"} @merge:text={text} )
Currently, it's kinda awkward when we want to merge a prop's value with another value. For example:
Perhaps, we could make this easier by introducing a
merge
directive: