CONTACT US

    React: Understanding State & Lifecycle

    • The state of a component is an object that holds information that may change over the lifetime of the component.
    • State is updated by event handlers
    • State should not be explicitly updated, you need to use setState method otherwise React won’t detect the changes.
    • We have four parts of component lifecycle methods: Initialization, Mounting, Updating, Unmounting.

    Article link copied

    Close button