adobe / react-webcomponent

This projects automates the wrapping of a React component in a CustomElement.
Apache License 2.0
105 stars 19 forks source link

@byContent should have a default functionality when no parameters are passed #10

Open visomar opened 5 years ago

visomar commented 5 years ago

Like the @byAttrVal annotation, when no parameters are passed, there is a default behaviour (in that case, matching the attribute with the same name of the property).

When I use @byContent without parameters, @byContent(), I expect a list of nodes, or a node (like a React.Fragment) wrapping everything inside the web component, maybe like the normal this.props.children property.