1import React from 'react';
2
3interface Props {
4}
5
6const App: React.FC<Props> = (props) => {
7 return (
8 <div><div/>
9 );
10};
11
12export default App;
1class Test extends Component<PropsType,StateType> {
2 constructor(props : PropsType){
3 super(props)
4 }
5
6 render(){
7 console.log(this.props)
8 return (
9 <p>this.props.whatever</p>
10 )
11 }
12
13};