Reports classes, interfaces, and objects that extend React Props or State types but are not marked as external in Kotlin/JS projects.
React component types should be external interfaces to properly interoperate with the JavaScript runtime.
Example:
interface MyProps : Props { // Warning: should be external interface
var title: String
}
class MyState : State { // Warning: should be external interface
var count: Int = 0
}
After the quick-fix is applied:
external interface MyProps : Props {
var title: String
}