Skip to content

[@types/react] fragments in react 16 #20249

@hecof

Description

@hecof

I think you should consider to update these lines of code in order to support react 16 fragments

render(): JSX.Element | null | false | string | JSX.Element[]; //class Component<P, S>
interface ElementClass extends React.Component<any> {
    render(): Element | null | false | string | Element[];
}

https://reactjs.org/blog/2017/09/26/react-v16.0.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions