Hacker News new | ask | show | jobs
by smdz 3360 days ago
I absolutely love how React+TypeScript setup handles PropTypes elegantly. And then you get the amazing intellisense automatically.

```

interface State {}

interface ISomeComponentProps {

  title: string;

  tooltip?: string

  ....
}

@ReduxConnected

export class SomeComponent extends React.Component<ISomeComponentProps, State> {

....

```