nNexGateHub
Browse NexGateHub
GPT

Local Mutable State

// ❌ BAD — counter resets on every recomposition @Composable fun Counter() { var count = 0 Button(onClick = { count++ }) { Text("$count") } } // ❌ BAD — same rule inside Column/Row content lambdas @Composable fun Wrap

Prompt text

Original English text. Replace placeholders with your own details.

Source & attribution

Awesome Prompts · Awesome Prompts

Source-listed license: GPL-3.0. Prompt text is preserved; titles and previews may be shortened for display. Source examples are not NexGateHub test results.

View original source ↗ · Source credits & licenses

Explore more prompts →