Open
Description
Abstract React components are not well-supported; Emmet doesn't seem to recognize nested tags inside attributes, because it uses HTML logic for parsing tags, and this only happens in JSX.
Given this example:
export default function Test() {
return (
<AbstractComponent
render={() => {
return (
<p>example</p>
);
}}
/>
);
}
If you select the <p>
element and run "wrap with abbreviation", it tries to wrap the entire <AbstractComponent ... />
rather than just the <p>example</p>
.
Thanks for all your wonderful work on Emmet!
Activity