-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
Breaking ChangeWould introduce errors in existing codeWould introduce errors in existing codeBugA bug in TypeScriptA bug in TypeScriptDomain: JSX/TSXRelates to the JSX parser and emitterRelates to the JSX parser and emitterWorking as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug
Milestone
Description
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.
Igorbek and thoemmi
Metadata
Metadata
Assignees
Labels
Breaking ChangeWould introduce errors in existing codeWould introduce errors in existing codeBugA bug in TypeScriptA bug in TypeScriptDomain: JSX/TSXRelates to the JSX parser and emitterRelates to the JSX parser and emitterWorking as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug