babel-jsx-to-ast-fragmented
v0.1.0
Published
@babel/parser wrapper for simple JSX tree.
Downloads
3
Maintainers
Readme
Babel JSX to AST Fragmented
@babel/parser
wrapper for simple JSX tree.
export const Foo = (props) => {
return (
<div className="foo bar baz">
<h1>Hello!</h1>
</div>
);
};
[
[
{
name: 'div',
position: { start: [Position], end: [Position] },
attributes: [ [Object] ],
children: [ [Object] ]
}
]
]