React. Awesome lazy components
turansky opened this issue · 0 comments
turansky commented
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
Instruction
- Use Seskar plugin
- PROFIT