vscode-react-typescript icon indicating copy to clipboard operation
vscode-react-typescript copied to clipboard

Importing react and usage of interface

Open jota12x opened this issue 4 years ago • 0 comments

Hi, this is more a question rather than an issue. I was curious about why it was decided to go for import * as React from 'react'; Instead of import React from 'react'.

The other question is about the usage of interfaces rather than types. I know this is kind of "controvertial" but why it was decided to include one over the other.

Thanks in advance, the snippets are awesome.

jota12x avatar May 08 '20 16:05 jota12x