JsPreview
Annotation that should mark top-level properties of type FC to be previewed
Example of use:
@JsPreview
val Welcome = FC {
var name by useState("sanyavertolet")
div {
+"Hello, $name"
}
input {
type = InputType.text
value = name
onChange = { event ->
name = event.target.value
}
}
}
Content copied to clipboard