dwjohnston / dwjohnston/blacksheepcode

posts/encapsulate_as_much_state_as_possible

Open
#257 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
MDX
Stars
3
Forks
1
Avg merge
6m
Merged PRs (30d)
2

Description

# 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](https://blacksheepcode.com/posts/encapsulate_as_much_state_as_possible)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.