In this chapter, we will create an entirely different app--a browser game. It will consist of two players, each commanding an impressive castle and trying to destroy the other one by bringing either the opponent's food or damage levels to zero with the help of action cards.
In this project and in the following ones, we will split our app into reusable components. This is the heart of the framework, and all its API is built around this idea. We will see how to define and use components and how to make them communicate with each other. The result will be a better structure for our app.