swc/ecmascript/parser/tests/jsx/basic/custom/unary-paren/input.js

19 lines
300 B
JavaScript
Raw Normal View History

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;