Closed
Description
Hi there.
Looking at the example typescript app. I'm getting compilation errors against typescript 3.4.3. It seems to be expecting Async
to return a JSX element and it isn't, and there doesn't seem to be an Async.Pending
property....
JSX element type 'Async<string>' is not a constructor function for JSX elements.
Type 'Async<string>' is missing the following properties from type 'Element': type, key
JSX element type 'Async<string>' is not a constructor function for JSX elements.
Property 'Pending' does not exist on type '<T>(defaultProps?: AsyncProps<T> | undefined) => Async<T>'.
Property 'Pending' does not exist on type '<T>(defaultProps?: AsyncProps<T> | undefined) => Async<T>'.
I'm looking at tsconfig.json and I'm not seeing anything there that should make a difference (this is also a create-react-app app). Should that example work as-is?
Metadata
Metadata
Assignees
Labels
No labels