Which is the best lib/framework option for a single code base for web, Android & iOS?

This page summarizes the projects mentioned and recommended in the original post on /r/webdev

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. react-native

    A framework for building native applications using React

    If you want a single codebase for web and mobile I would look into react-native and react-native-web. You could probably code the web app with react-native-web, make it responsive and build it through react-native for mobile. Designing an app for mobile and for web can lead to significant difference though since the experience is quite different. Some things might make sense for a mobile and not for a desktop or the opposite. So I wouldn't discard completely the idea of having separate codebases. Highly depends on the app though, totally valid for many use cases.

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. react-native-web

    Cross-platform React UI packages

    If you want a single codebase for web and mobile I would look into react-native and react-native-web. You could probably code the web app with react-native-web, make it responsive and build it through react-native for mobile. Designing an app for mobile and for web can lead to significant difference though since the experience is quite different. Some things might make sense for a mobile and not for a desktop or the opposite. So I wouldn't discard completely the idea of having separate codebases. Highly depends on the app though, totally valid for many use cases.

  4. CUA

    (deprecateed) create-universal-app(CUA) is an opinionated template for creating fullstack universal apps (Expo, Next, tRPC, Prisma, Clerk, Solito, Tamagui)

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Transitioning from React.js to React Native

    3 projects | dev.to | 13 Sep 2024
  • Calender suggestion

    1 project | /r/reactnative | 11 Aug 2021
  • I made a starter React Native app that compile to iOS, Android, Web and Desktop apps in one codebase :)

    3 projects | /r/reactnative | 31 Dec 2020
  • Weekly JavaScript Roundup: Friday Links 15, January 17, 2025

    12 projects | dev.to | 17 Jan 2025
  • Journeying from React to React Native

    8 projects | dev.to | 3 Oct 2024

Did you know that JavaScript is
the 3rd most popular programming language
based on number of references?