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

Allow default use without the need of a model #2

Open alexmirea opened 5 years ago

alexmirea commented 5 years ago

Expected Behaviour

Currently the library requires a model to be defined in order to parse the DOM into React properties. We could add a default mode without the need to specify a model. Every time a property of the element changes the library can update the React component with a property named after the attribute name and with the value as string.

We could consider transforming attribute with hypens (-) to camel case.