/React-HackerNews

Hacker News Example with React.js and PubSub

Primary LanguageJavaScriptMIT LicenseMIT

React + PubSubJS

A Hacker News implementation built on React and PubSub

Why PubSub pattern?

It's a simple solution to the communication between non-related React's components without the Flux architectural pattern or Parent-Child DOM structure.

PubSub communication

PubSub with React

Facebook way

Parent-child communication

For parent-child communication, simply pass props.

Parent-child communication pattern encapsulate state and relation to a component. But this pattern often cause unnecessary bloated DOM.

Flux

Questions on the stackoverflow