``` @Preview @Composable fun Greeting(name: String...
# compose
p
Copy code
@Preview
@Composable
fun Greeting(name: String = "Android") {
    Text (text = "Hello $name!")
}
Would the preview work by using default values?
t
I think the sole purpose of
@Preview
is to make a documentation for your components. So you can develop them and provide some usage examples for different states
r
No, it actually renders previews in the IDE