Files
Jan PotomsGitHubJJ Kasperkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
9300151118 Allow pages to be async modules to enable top-level-await (#17590)
Co-authored-by: JJ Kasper <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-10-14 11:55:42 +02:00

8 lines
166 B
React

const errorContent = await Promise.resolve('hello error')
function Error({ statusCode }) {
return <p id="content-error">{errorContent}</p>
}
export default Error