3 ms·
@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
by antouank 12y ago
@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.