Skip to content

Determining the availability of props.visible #95

Open
@devdammit

Description

@devdammit

Hello Guys! I noticed that you check the props.visible by the presence of it in props.
Why not check for undefined?

if ('visible' in this.props) {

We use a rule eslint - react/require-default-props. And set props.visible as undefined in the defaultProps. And if the props.visible is equal to undefined, then he still gets to extraProps.popupVisible.

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