AZ
function Foo() {
}
и
const Foo = () => {
}
?
Кмк первое проще понять
Size: a a a
AZ
AZ
AZ
VS
VS
p
AZ
AZ
AZ
import * as React from "react";
export interface HelloProps { compiler: string; framework: string; }
// 'HelloProps' describes the shape of props.
// State is never set so we use the '{}' type.
export class Hello extends React.Component<HelloProps, {}> {
render() {
return <h1>Hello from {this.props.compiler} and {this.props.framework}!</h1>;
}
}AZ
p
AZ
p
p
AZ
p
p
p