JsPreview

@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class 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
}
}
}