Skip to content

TSX and React Context API broke on nightly #27948

@pocesar

Description

@pocesar

TypeScript Version: 3.2.0-dev.20181017

Search Terms: react, tsx, jsx, construct, call signatures.

Code

import React from 'React'

const Context = React.createContext<{}>({});

const El = <Context.Provider>{() => null}</Context.Provider>

Expected behavior:

Works as in 3.1.3

Actual behavior:

Giving JSX element type 'Context.Provider' does not have any construct or call signatures.

Metadata

Metadata

Assignees

Labels

Breaking ChangeWould introduce errors in existing codeBugA bug in TypeScriptDomain: JSX/TSXRelates to the JSX parser and emitterWorking as IntendedThe behavior described is the intended behavior; this is not a bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions