Re:Show HN: New Hacker News web client
by antouank on Monday December 29, 2014 @03:54PM
(#8811711)
@insin This project is an opportunity for me to make some production-ready thing on Flux/React.
I'm new to it.
I have two stores, one for the news stories, and one for the comments. And then a smaller one for the notifications.
I don't use any state in the components. Everything propagates from the top level and the stores.
The counter component doesn't have a state, but when it sees an update, it just adds/removes a class and that's how you get the animation.
I have two stores, one for the news stories, and one for the comments. And then a smaller one for the notifications. I don't use any state in the components. Everything propagates from the top level and the stores.
The counter component doesn't have a state, but when it sees an update, it just adds/removes a class and that's how you get the animation.