Skip to content

Documentation: Inaccuracy in Component Specs #1778

@cwharris

Description

@cwharris

The component spec reads such that getInitialState will occur before mount, and getDefaultProps will occur after (when) mounting. In reality, getDefaultProps occurs before getInitialState (which is accurate, as state may depend on props), so the wording should reflect this.

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