Back to CodeBlock

Type Checking

View Source
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { CodeBlock } from 'mdxts/components'

export function TypeChecking() {
  return (
    <CodeBlock
      value={`const a = 1; a + b;`}
      language="ts"
      allowCopy={false}
      allowErrors
      showErrors
    />
  )
}
const a = 1
a + b