I’m trying to look into adding wrappers for common react components. If there is already something for this, just skip the rest and paste a link. I’m specifically looking for react router, and redux.
I started a repository, and working on a very simple module to try and get used to the build system.
I have the module auto completing in intellij, and seeing the proper types. But it’s failing to run.
src\app\App.kt:10:8: error: unresolved reference: reactextra import reactextra.material.spinner.MDSpinner ^ src\app\App.kt:66:9: error: unresolved reference: MDSpinner MDSpinner() ^
The app itself is dead simple, just importing that library and calling the module.
Gives me the following. I’ve been going over the source for kotlin-wrapper and the outputted npm module. But there’s something I just be missing.
Secondly I wanted to ask about type matching with type script. I’m using ts2kt. But I’m curious about the best approach for discriminated unions. I’m thinking a sealed class, but wasn’t 100% sure.
Thanks in advance.