# compose


06/06/2022, 8:36 AM
Hi all ! I'm looking for some ressource or explanation to understand why Compose use function instead of class ? I've listened this Android Leaks episode, where Leland and Romain explain a little bit about the starting point of Compose (at approximately 11 minutes). They say that at the beginning of Compose, they first decided to declare component as classes. I'm really curious to find an example of what it looked like at that time (when using classe). Also I have trouble to imagine what was the extra rules they had to add to declare how the class should behaved and why it started to become less and less a good approach to use classes. Thanks for your help 🙏