Skip to content

Property 'children' does not exist on type 'IPrimaryLayout' #1

@michaelmunter

Description

@michaelmunter

The children parameter gave an error in PrimaryLayout.tsx using React 18. Apparently, this is because they removed the implicit children in the React.FunctionComponent type.

I got it to work by adding them here:

export interface IPrimaryLayout {}

like this

export interface IPrimaryLayout {
   children?: React.ReactNode
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions