Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Use of allowSyntheticDefaultImports flag in tsconfig.json #18

Open
YagoLopez opened this issue Dec 23, 2017 · 0 comments
Open

Use of allowSyntheticDefaultImports flag in tsconfig.json #18

YagoLopez opened this issue Dec 23, 2017 · 0 comments

Comments

@YagoLopez
Copy link

Reading README.md it says:

Moving files over to TypeScript

[...]

We'll immediately get a few errors, but they're easy enough to fix. The changes will include:

Replace import React, {Component} from 'react'; with import * as React from 'react';

I am using React+Typescript, and activating the flag allowSyntheticDefaultsImports in tsconfig.json solves this issue. Now you can use import React, {Component} from 'react' without modificate the code.

I was wondering if it is worth I send a pull request to modify README.md. Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant