Chapter 3: Exploring the Key Principles of Compose
In the first chapter of this book, we built and run our first Jetpack Compose app. Then, in Chapter 2, Understanding the Declarative Paradigm, we explained the imperative nature of Android's traditional UI toolkit, illustrated some of its weaknesses, and saw how a declarative approach can overcome them.
In this chapter, we build upon these foundations by examining a few key principles Jetpack Compose relies on. This knowledge is essential for writing well-behaving Compose apps. This chapter introduces these key principles.
In this chapter, we will cover the following topics:
- Looking closer at composable functions
- Composing and recomposing the user interface (UI)
- Modifying the behavior of composable functions
We will start by revisiting composable functions, the building blocks of a composable UI. This time, we will dig much deeper into their underlying ideas and concepts. By the end of the first main...