Skip to content

posts/encapsulate_as_much_state_as_possible #257

@utterances-bot

Description

@utterances-bot

Encapsulate as much state as possible in your component

A common pattern I see is passing every bit of a component's state in as a prop. This just puts the responsibility of that component's actual useful logic on to the parent.

https://blacksheepcode.com/posts/encapsulate_as_much_state_as_possible

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions