Hi I'm back to kotlin after the latest release of 2.0.20. Yesterday I would like create a kotlin multiplatform project with the js target on, react and react-dom from kotlin wrappers with the last released version and a sample configuration in the main.
Then I use the gradle 'jsRun' task for compile and run the application but I got this error.
Can anyone help me? I can't figure out where I wrong.
e
Edoardo Luppi
07/06/2024, 8:57 PM
Better post under #javascript
👍 1
k
Khubaib Khan
07/07/2024, 1:04 PM
You forgot to add the @JsExport as annotation where you are using the FCProps.
Copy code
@JsExport
private val App = FC<Props>{
+"Hello, World!"
}