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.

The Simplest React Stack – Part 1: Bootstrapping and State Management

73 pointsby thenewestkidalmost 8 years ago

6 comments

whalesaladalmost 8 years ago
Surprised to see the state store caring about events. Checking for a keycode in your system to add an event to a store feels like a violation of separate concerns. That was an immediate turnoff for me with this post.
评论 #15139007 未加载
评论 #15140168 未加载
_pdp_almost 8 years ago
In our shop where we have built many high-performant, and pretty complex (various types of security tools and all that) react apps, the state is managed at the top-most component and it is passed down to all other components as props. It works great and it is functional all the way.
评论 #15138793 未加载
评论 #15138771 未加载
评论 #15138763 未加载
评论 #15139386 未加载
faitswulffalmost 8 years ago
Neat. Did you get any inspiration from Vuex in creating the store? The global store and building it out of a POJO are pretty similar patterns that I happen to like.
评论 #15139651 未加载
sigdenalmost 8 years ago
I'm a big fan of react-easy-state. Unfortunately its foundation of ES6 proxies precludes its use in Internet Explorer.
评论 #15140724 未加载
评论 #15143430 未加载
jbergensalmost 8 years ago
Nice idea!<p>Did you check out mobx?<p>My guess is that it would be almost as easy and a bit more mature.
评论 #15139122 未加载
molly0almost 8 years ago
get completed () Is &quot;get&quot; som es6 thing?
评论 #15138719 未加载
评论 #15139828 未加载