Skip to content

do not add empty object = {} as default props #2548

@dimaMachina

Description

@dimaMachina

Initial checklist

Problem

I saw in the generated code an empty object as default props props = {}, this is unneeded as props are always object

export default function MDXContent(props = {}) {
image

Solution

export default function MDXContent(props) {

Alternatives

no alternative

Metadata

Metadata

Assignees

No one assigned

    Labels

    👎 phase/noPost cannot or will not be acted on🙅 no/wontfixThis is not (enough of) an issue for this project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions