Are Fragments useless with jetpack compose?

Viewed 450

As far as I know, before jetpack-compose, It was good practice to have one single activity and then use multiple fragments for your app. But now jetpack compose offers navigation between jetpack compose functions so do we need fragments now? or we can just use single activity with multiple screens(compose functions) if we don't need fragments anymore, how I could do stuff like add/edit in the database, getting context, etc. while using only single activity and compose functions. I'm still a beginner/learning so I might be missing something or doing something wrong.

0 Answers
Related