Skip to content

Dynamic name for the classes that returns c is added

Compare
Choose a tag to compare
@UpperCod UpperCod released this 24 Jan 05:04
· 127 commits to master since this release

This change is intended to give consistency between the name of the function and the name of the class returned by the c function, example:

function myComponent(){}

c( myComponent ).name; // MyComponent

When defining the custom Element as a class, the name will be taken from the functional webcomponent and it will be used as a class name in camel case format.