@barelyhuman/astring-jsx
Version:
astring, with JSX support
26 lines (24 loc) • 407 B
JSX
// prettier-ignore
class Test {
render() {
const obj = {
a: 1,
};
const funcObj=()=>{
return {
a:1
}
}
return (
<>
<div foo="bar" foo:bar={bux}>
This is a test.
<Test.Name.Foo />
{foo.map(() => "bar")}
<p>Text</p>
<div {...obj} {...obj.a} {...funcObj()}/>
</div>
</>
);
}
}