Closed rmorse closed 2 years ago
Right now, .templateVars must be immediately after the component definition.
.templateVars
const MyComponent = ( { name } ) => <>{ name }</>; // Nothing can go here! MyComponent.templateVars[ 'name' ];
If there is anything else in between the two, it breaks...
Need to reliably find the component definition from the .templateVars prop so this can be more flexible.
This has been fixed in v0.0.8
Right now,
.templateVars
must be immediately after the component definition.If there is anything else in between the two, it breaks...
Need to reliably find the component definition from the
.templateVars
prop so this can be more flexible.