JetBrains/kotlin-wrappers

React. Awesome lazy components

turansky opened this issue · 0 comments

Goal

Hide import/lazy routine in annotation

Draft

// App.kt

val App = FC {
    Suspense {
        Header()
    }
    Suspense {
        Content()
    }
    Footer()
}

// Header.kt
@Lazy
val Header = FC {
    // my heavy header
}

// Content.kt
@Lazy
val Content = FC {
    // my heavy content
}

Related issues

  1. Non-local @JsExport - KT-70622
  2. Invalid void.mjs import - KT-71217

Instruction

  1. Use Seskar plugin
  2. PROFIT