Toy implentation of Facebooks Flux SPA architecture