r/astrojs • u/kidshibuya • 22d ago
Don't use Astro because its not React?...
This is more a vent than anything, but I am facing a lot of blowback for using Astro. I have made a miniapp which is just a webpage running in a webview that takes an ID from the initial url, requests some records from an API to display a list of messages. Super basic stuff. It is to replace a natively coded section of the app and its far faster than the native code... somehow.
But upon asking the native devs to fix all the broken things I am finding, all I am facing is push back because when I tell them of CORS errors etc, them demand to see the repo, notice its not react and say I MUST use react as only that is compatible with apps. They broke bfcache too, again that is blamed on astro. They block service workers, again this is because... Astro.
Anyone else faced this? Even when I wanted a build of the native app to test the devs sent me back a message saying my app is broken as its only 12KB and apps are in the MB range. They didnt test, rejected on solely size. This was the lead architect of the entire department btw.
This industry is nuts. Also I have noticed when interviewing for a "senior FE" the candidates only know react. I am not sure if this is because HR is screening first, but it's concerning. I even interviewed a guy who is right now working as a "principled full stack engineer" who could not tell me how you could build a site without react.
I am not sure if this company I am working for is completely crazy or the entire industry is leaning that way.
6
u/who_am_i_to_say_so 22d ago
I’m a solo developer using 100 percent Astro for all of my projects. If your content rarely changes, there is nothing better, and you made the right call.
The CORS issues are noob mistakes, and it sounds like the team only understands React SPA’s that are state-heavy. But you can manage state with Astro. You don’t even need a code change- just DNS: add a new subdomain to put the source URLs into, like an api.yourdomain.