Been doing jetpack compose and kotlin made a basic app on which when you tap on an image the image and the text changes and the second image requires a random number of taps bw 2 to 4 so when i made the project initially made a single composable function which contained how the ui would look and i coded the logic inside it only but as i made the project i ended up using two composable functions
1. Which defined how the ui would look
2. For updating the ui states or how the ui elements would behave
I wanted to ask is this approach correct like is my thinking as to how to develop an app just by an idea or a ui basically i wanted to know how a senior developer approaches it the map of the app in their mind the steps etc