next.js/test/e2e/browserslist/app/pages/index.js
index.js23 lines355 B
import React, { useEffect } from 'react'
const helloWorld = 'hello world'

class MyComp extends React.Component {
  render() {
    return <h1>Hello World</h1>
  }
}

export default function Page() {
  useEffect(() => {
    ;(async () => {
      console.log(helloWorld)
    })()
  }, [])
  return (
    <>
      {helloWorld}
      <MyComp />
    </>
  )
}
Quest for Codev2.0.0
/
SIGN IN