swc/tests/fixture/pr-1524/comment-2/output/index.tsx
강동윤 57d1aaf80f
fix(es): Fix various bugs (#1707)
swc_ecma_codegen:
 - Fix codegen of `\r\n` in template literals when targeting `es2020`. (denoland/deno#10282)

swc_ecma_parser:
 - Support non-identifier getters in typescript. (#1708)

swc_ecma_transforms_typescript:
 - Skip `export {}` if it was not a module. (#1706)
 - Skip `export {}` if the result is module without it. (#1706)
2021-05-17 22:27:59 +09:00

8 lines
183 B
TypeScript

function Bar() {
const [foo, setFoo] = useState(0);
React.useEffect(()=>{
// @refresh reset
});
return(/*#__PURE__*/ React.createElement("h1", null, foo, " "));
}