As developers adopt these frameworks, being able to build a single Next.js (or Remix, etc) app that runs on the web and natively on iOS and Android is a big advantage.Īnd, because Capacitor is a true web environment, it supports using CSS frameworks like Tailwind CSS out of the box. One side-effect of Capacitor being a standard web environment is that it supports apps built with popular React full-stack frameworks such as Next.js and Remix. It can run pretty much any React app using react-dom, but extends it with full access to the native APIs available on iOS and Android, as well as providing a cross-platform API for device features that enables one codebase to run equally well on iOS, Android, and the web as a PWA. Chances are an existing React app using react-dom will be a major effort to port to react-native.Ĭapacitor, on the other hand, is a standard web environment. There’s no support for standard CSS and many React libraries don’t support it. This makes sense, since React started as a way to build web apps and web developers are the primary users of it.īut when it comes to mobile, these same web developers are faced with the large task of targeting react-native, a non-web environment that may be “React” but certainly isn’t react-dom. According to and at the time of this writing, react-dom is installed ~80M times each month, compared to 5.4M for react-native. Today, React web development using react-dom is, by far, the most popular way to use React. That means, with Capacitor, it’s possible to run standard React web apps on iOS and Android with full native API access, and I’d like to introduce it today and talk about why it’s worth your time and when it might be the right tool for your next project. That alternative is Capacitor, a project that runs web apps natively on iOS, Android, and the web with a single codebase. In the React world, when you think mobile development you probably think React Native, right? It’s a great project and has been the standard mobile development stack for React developers for years.īut did you know there’s another alternative that React developers are increasingly turning to that might be a better fit for certain teams and projects, especially those using react-dom and with large existing React web apps?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |