Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

What is state hoisting in Compose?

  1. A Moving state up so a composable takes state and a callback rather than owning it
  2. B Caching state in a database
  3. C Storing state in the manifest
  4. 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.

All Android MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as