react-native-web VS craco

Compare react-native-web vs craco and see what are their differences.

craco

Create React App Configuration Override, an easy and comprehensible configuration layer for Create React App. (by dilanx)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
react-native-web craco
62 32
21,326 7,361
- 0.4%
6.4 6.4
21 days ago 4 months ago
JavaScript TypeScript
MIT License Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

react-native-web

Posts with mentions or reviews of react-native-web. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-17.
  • NextJS on iOS & Android????? How???
    5 projects | /r/nextjs | 17 Jun 2023
    maybe https://necolas.github.io/react-native-web/? https://github.com/vercel/next.js/blob/canary/examples/with-react-native-web/README.md
  • What version of react native is compatible with react native web?
    1 project | /r/reactnative | 15 Jun 2023
    I am following a tutorial that is 4 years old that states that react native 0.55.4 is last compatible with react native web and anything later is not compatible yet. He showed the documentation page in the video as his source.
  • Rust and Next.js everywhere?
    2 projects | /r/rust | 26 Apr 2023
    Personally, if you're trying to find a stack that can be applied everywhere with Next.js as your chosen framework, best bet would be React Native Web or similar. Which would let you share the maximum amount of frontend code between Web, iOS, and Android. Then you could reach for electron (barf) or something to bundle it for desktop if that was a requirement.
  • Here's what I'd like to do as a hobby project... what should I learn?
    1 project | /r/learnprogramming | 13 Mar 2023
    Some of the top cross-platform frameworks do have support for web targets. React-Native-Web and Flutter on the Web are both ways to target the web with your cross-platform app.
  • How do i intergrate vite.js with my current react-native project?
    1 project | /r/reactjs | 9 Mar 2023
    https://github.com/necolas/react-native-web/discussions/2201 it can be done.
  • Which is the best lib/framework option for a single code base for web, Android & iOS?
    3 projects | /r/webdev | 25 Feb 2023
    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.
  • Need an advice for frontend framework (beginner in frontend development)
    5 projects | /r/Frontend | 25 Feb 2023
    Another fun thing you could do is build it for mobile + web using React-Native through Expo or manually with https://necolas.github.io/react-native-web/
  • I lost $209,640 of my own money trying to start a business
    1 project | news.ycombinator.com | 31 Jan 2023
    If you're using Expo (which I assume most are on RN) they have web support. This is via React Native Web, which is a separate project if you wanted to use that directly too.

    Personally though, I've found the DX of Flutter far above RN. I always had random packages break on RN that I had to fix every time, while with Flutter most of what you need is already included in the framework, including a component UI library for Android and iOS.

    [0] https://docs.expo.dev/workflow/web/

    [1] https://github.com/necolas/react-native-web

  • I made a template for making full-stack universal(web + mobile) apps! (tRPC, Expo, Next, Solito, Tamagui, Clerk Auth, Prisma!)
    7 projects | /r/reactnative | 7 Jan 2023
    So the RN-R part is done by https://necolas.github.io/react-native-web/ and it's really good! However, there are some code that is kind of outside of the scope of React. Ie. Navigation, that's more in the realm of Next.
  • No, React Native is not the future
    4 projects | news.ycombinator.com | 31 Dec 2022
    I don't have personal experience with this, but React Native Web claims to solve this issue: https://necolas.github.io/react-native-web/, not sure if anyone has had experience with this. Of course, you will have issues with dependency hell/package maintenance.

    Another great option seems to be Flutter web. I was really impressed by the "batteries included" approach to Flutter, and Dart has a pretty comprehensive standard library. This is in contrast to React's "just find a random package on npm and pray it doesn't bite you in the future."

    Obviously rewrites are expensive, but I personally think both approaches are worth considering versus abandoning native components completely. WebView isn't without problems (and also, you don't need React Native to use WebView).

craco

Posts with mentions or reviews of craco. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-18.
  • Htmx and Web Components: A Perfect Match
    5 projects | news.ycombinator.com | 18 Jan 2024
    I had some 'fun' figuring out how to deal with not going through create-react-app without doing a full eject, got something barely working ... and discovered https://craco.js.org/ already existed and did precisely what I'd part-implemented except better.

    On the upside, by that point I knew the CRA codebase well enough to predict what it would do even in edge cases, and CRACO's implementation was immediately comprehensible, and none of my colleagues had to try and understand my half-arsed NIH version.

    (avoiding being in any of this situation in the first place would likely have been preferable, but given where things were when I landed on the project in question that would've required a TARDIS)

  • Gzip Compression and IIS Setup on Windows Server for React Projects
    1 project | dev.to | 6 Jan 2024
    If you initiated your React application using create-react-app, leverage @craco/craco to override your webpack configuration.
  • Build a web editor with react-monaco-editor
    5 projects | dev.to | 4 May 2023
    Ejecting a React app is a bad idea because our application will lose all the React configurations and will not benefit from the CRA updates. Some solutions for ejecting our application include using packages like react-app-rewired or rewire. You can also use CRACO to eject your React application, but it needs you to install additional plugins.
  • How are you building React applications? It's time to move on from Create React App
    13 projects | dev.to | 12 Apr 2023
    So, instead of entirely managing these configuration files, teams took to utilizing tools such as Craco to override configurations. These tools also come with their limitations: they were not updated as quickly as CRA, so there was always a lag in implementing new features, and they added an extra layer of complexity to existing tools through overrides and additional tools.
  • How to start a React Project in 2023
    10 projects | news.ycombinator.com | 23 Mar 2023
    I am not much of a fan of CRA myself but I am very much glad that https://craco.js.org exists - so far it's handled my needs for tweaking CRA behaviour in situations where "eject" didn't seem like a good route to take.

    Mostly tbh to stop the freaking thing spawning inotify watchers for the entire contents of node_modules - I don't mind having to do a manual restart when I've changed dependencies and I definitely -do- mind having it eat a shedload of my user's inotify kernel allocation. (I know you can up the allocation, that's not the point, why are you on my lawn? :)

  • How can I make my CRA server start up quicker?
    5 projects | /r/reactjs | 9 Feb 2023
  • How to bypass mobile app review thanks to Capacitor, Ionic, and micro frontends 🤯
    10 projects | dev.to | 23 Jan 2023
    As I mentioned, in our case, the perfect tool for this job is CRACO. It will let us simply overwrite CRA’s configuration without ejecting.
  • Top packages for React Development
    10 projects | dev.to | 20 Jan 2023
    Create react app + Craco
  • Working with Ant Design in React - Customization
    3 projects | /r/reactjs | 22 Oct 2022
    Or I could use Craco with Craco-less. Craco 6+ doesn't work with 5+ versions of react-scripts. I know I could use yarn instead of NPM which doesn't stop the installation of craco, but it can't be the solution. We can't scrap the project and restart. Further, Craco 7-alpha installs but then craco-less doesn't.
  • CRA vs Parcel
    6 projects | dev.to | 5 Sep 2022
    If you want to customize the webpack configuration, you either need to eject, or to work against the package (with yarn patch, forking react-scripts, or using CRACO which is the easiest). But none of them are officially maintained by the CRA team.

What are some alternatives?

When comparing react-native-web and craco you can also consider the following projects:

react-native-keyboard-aware-scroll-view - A ScrollView component that handles keyboard appearance and automatically scrolls to focused TextInput.

react-app-rewired - Override create-react-app webpack configs without ejecting

sciter-js-sdk - Sciter.JS - Sciter but with QuickJS on board instead of my TIScript

webpack - A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.

metro - 🚇 The JavaScript bundler for React Native

Next.js - The React Framework

react-native-elements - Cross-Platform React Native UI Toolkit

create-react-app - Set up a modern web app by running one command.

react-native-material-ui - Highly customizable material design components for React Native

Tailwind CSS - A utility-first CSS framework for rapid UI development.

NativeBase - Mobile-first, accessible components for React Native & Web to build consistent UI across Android, iOS and Web.

vite - Next generation frontend tooling. It's fast!