React
Issue
Testing
Git stash
Study
uncertainty
/
JavaScript/TypeScript
/
JS/TS
/
Uncaught SyntaxError: await is only valid in async functions and the top level bodies of modules
uncertainty
/
JavaScript/TypeScript
/
JS/TS
/
Uncaught SyntaxError: await is only valid in async functions and the top level bodies of modules
Share
React
Issue
Testing
Git stash
Study
Uncaught SyntaxError: await is only valid in async functions and the top level bodies of modules
Asset Type
File Type
When to use
Reference
Created by
Last edited time
2022/03/13 16:09
constructor에서 바로 데이터를 받게 되어 있다.
하지만 에러가 발생한다. 필요한 로직은 함수로 감싸야겠다.