Hello everyone. I’m new to compose :slightly_smili...
# multiplatform
p
Hello everyone. I’m new to compose 🙂 I am trying to create a multiplatform project (android, iOS, web, desktop). I found this repository with multi platform set up: https://github.com/joreilly/PeopleInSpace Is there any reference that I can follow to setup similar project with those modules?
@John O'Reilly hope you have a few minutes to give me a hint. Thanks!
j
I reference John O'Reilly but for Android and iOS I have a tutorial on how to get started, and you could then just add in js and desktop after, to include these subprojects.

https://youtu.be/NOYWE7J18-U

p
thanks @James Black let me try it
@James Black I have another question, if you could answer, that would be great
From what I understood, for now compose web parses kotlin code to DOM. So: 1. We can not share the mobile/desktop code with web (because mobile/desktop render on Canvas), is this correct? 2. But if web use Canvas, it will have the problem with SEO and performance (big bundle for first load)?
j
@phuc.tran Compose is for the desktop and android, for UI components. For the web you could use react or angular, for example, or just html/javascript. Basically KMM just allows you to share the business logic for an application across multiple different UI interfaces. So you can use whatever you want for the UI part, most of the business logic will be in a shared library.
p
Does that mean we can use shared (Kotlin) code for other frameworks/languages?
@James Black
j
Yes, if you look at John O'Reilly's repos he has applications that will work on watches, desktop, web, android, iOS, with a shared component, @phuc.tran