I created this webpage with create-react-kotlin-app. The xml is different than I'm used to and I'm really struggling using a logo that is in the same directory as index.kt. How can I fix this?
package index
import react.dom.*
import kotlin.browser.*
fun main(args: Array<String>) {
val rootDiv = document.getElementById("root")
render(rootDiv) {
img(src="./logo.jpg"){}
}
}
src/resourcesfolder. (That is even if you have one)img(src=require("./logo.jpg")){}and reference your image correctly