I'd use kodein, it is pretty easy and is multiplatform for a while now. I made a kmm project with a server (ktor) where kodein has helper methods, it is now ready for Jetpack compose as well (even though I wrote my own helper functions which anyway did the (same) trick before that) and it was easy enough with similar helper methods to jetpack compose, to use it for the kotlin js react part as well.