swc/ecmascript/parser/tests/jsx/basic/custom/unary-paren/input.js
강동윤 227423d5f6
Export default from & fix codegen of imports (#168)
swc_ecma_ast:
 - Support `export v from 'foo';`

swc_ecma_parser:
 - Support `export v from 'foo';`

swc_ecma_codegen:
 - Fix codegen of side-effect imports
2019-02-12 15:30:11 +09:00

19 lines
300 B
JavaScript

import React from 'react';
function App() {
const isLoading = true;
return (
<div>
<h1>works </h1>
{
isLoading ? (
<div>loading </div>
) : (
<div>naaaaaaaaaaaaffffffffffffffff </div>
)
}
</div>
);
}
export default App;