A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/DefinitelyTyped/DefinitelyTyped/issues/5128 below:

React ES6 import issue · Issue #5128 · DefinitelyTyped/DefinitelyTyped · GitHub

I try to do this:
import React, {Component} from 'react';

But I don't know how to define the react.d.ts to support this valid ES6 behavior.

The compiler produces this error:
error TS1192: Module '"react"' has no default export.

jcrben, brunolemos, niklashigi, james-prado, gangster and 8 more


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4