+++ .prettierignore
... | ... | @@ -0,0 +1,6 @@ |
1 | +# Ignore artifacts: | |
2 | +build | |
3 | +coverage | |
4 | + | |
5 | +# Ignore all HTML files: | |
6 | +*.md |
+++ public/md/react/typescript.md
... | ... | @@ -0,0 +1,18 @@ |
1 | +# React TypeScript | |
2 | + | |
3 | +* Person.tsx | |
4 | +```ts | |
5 | +import react from 'react'; | |
6 | + | |
7 | +class Person extends React.Component<{}> { | |
8 | + render() { | |
9 | + return ( | |
10 | + <div> | |
11 | + <h1>Hello React TS</h1> | |
12 | + </div> | |
13 | + ); | |
14 | + } | |
15 | +} | |
16 | + | |
17 | +export default Person; | |
18 | +``` |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?