Skip to content

App.tsx - Section needs type for "children" #268

Closed
@ameetmadan

Description

@ameetmadan

Expected results

What did you expect to happen?

App.tsx has no TypeScript errors

const Section: React.FC<{
  title: string;
  children: React.ReactNode; /* This line needs to be added to correct the errors */
}> = ({children, title}) => { ... }

Observed results

What happened?

App.tsx has TypeScript errors

const Section: React.FC<{
  title: string;
}> = ({children, title}) => { ... }

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