babel-plugin-macros-example Installation npm install inlinejsx.macro Usage import Inline from 'inlinejsx.macro' const a = <Inline> <div>hello</div> </Inline>; Result const a = "<div>hello</div>;\n";