React.Component as View
// Component
export class App extends React.Component<{count: number, dispatch: (action:
Action) => void}, {}> {
render() {
const {count} = this.props;
const countUp = this.countUp.bind(this);
return (
This is simple demonstation of Falcor, React and flux.
Click + 1
{count}
);
}
countUp() {
this.props.dispatch(countUpAction(this.props.count + 1));
}
}