What is state hoisting in Compose?
- A Moving state up so a composable takes state and a callback rather than owning it
- B Caching state in a database
- C Storing state in the manifest
- D Preloading state at startup
Answer
Moving state up so a composable takes state and a callback rather than owning it
Hoisted state makes composables stateless, reusable and testable, which is the recommended pattern.





