test2.tsx 285 B

123456789101112131415161718
  1. let a = 12
  2. type Style = 'bold' | 'italic'
  3. interface Person {
  4. first: string
  5. last: string
  6. }
  7. (x: number, y?: number): string {
  8. return Math.pow(x, y).toString()
  9. }
  10. const About = ({ name }: { name: string }) => (
  11. <h1>This page is about {name}</h1>
  12. )
  13. export default About