You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
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
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Reading README.md it says:
I am using React+Typescript, and activating the flag
allowSyntheticDefaultsImports
intsconfig.json
solves this issue. Now you can useimport 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
The text was updated successfully, but these errors were encountered: