You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current version of library does not allow to create element attributes with object spread syntax. There was no problem in version
2.
// just artifical example for demonstrationconstExample=()=>{constdynamicAttrs={title: "dynamic title"};// using spread attributes resolves in compile error "Cannot read property 'type' of undefined"return(<div{...dynamicAttrs}>Just test</div>);};
Current version of library does not allow to create element attributes with object spread syntax. There was no problem in version
2.
node.name
isundefined
here:https://github.com/insin/babel-plugin-react-html-attrs/blob/master/lib/index.js#L222
The text was updated successfully, but these errors were encountered: