TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Where to Put State?

1 pointsby srachamimover 5 years ago

1 comment

srachamimover 5 years ago
Those programmes where I put state in one place dedicated to managing state (e.g. Redux) were much more easier to reason about then those where I put state everywhere, anywhere somewhere (Parent? Current component? Context provider? Apollo? Redux?)<p>Man, that should be that simple: Everything is from above.<p>Is it gonna change? Then it&#x27;s a state. Put it in a state manager and pass it from top to bottom.<p>Every other solution is a workaround.