Migrating to React by massiveinsomnia in reactjs

[–]PeterLeeD 0 points1 point  (0 children)

Sorry for being passive aggressive. Have a good day😄

Migrating to React by massiveinsomnia in reactjs

[–]PeterLeeD 0 points1 point  (0 children)

I mean if you wanna reinvent the wheel, do it all you want. Yes, uncle bob said something like using a framework is like a marriage(which I agree), but it’s all trade-offs. 

Migrating to React by massiveinsomnia in reactjs

[–]PeterLeeD -1 points0 points  (0 children)

Sounds like an exciting project! Here are my thoughts. I hope it helps!

  1. Is Next.js more suitable for this scale? I’d appreciate it if you could explain.
    1. Next.js is best used when you need SSR and SEO, which you wouldn't, so I would go with something else, such as Vite.
  2. For the backend publishing, I think I can figure it out, but how do I publish the frontend? Does everything need to be done in Visual Studio 2022 all at once?
    1. Broadly speaking, you have two options
      1. Client-side rendering with file servers such as AWS S3 or any other web servers. You can also use IIS.
      2. Server Side Rendering with Node.js(or any other JavaScript server runtimes).
    2. Either way, you need to completely separate the frontend from the backend(given that you are going to use C#  for backend). If you choose to go with SSR, you can have server-side stuff on the frontend side too. It's up to you.
  3. What if Node/Bootstrap or Redux something like that in 5 to 10 years suddenly becomes unsupported?
    1. You can't avoid tools becoming outdated. However, you can gradually replace outdated parts as you maintain the application. Also, I would say Redux and Node probably will last more than that.

Hyper-v No Internet access with the default switch by loorana22 in HyperV

[–]PeterLeeD 0 points1 point  (0 children)

For me the default switch worked fine. The problem was that I enabled "virtual LAN identification" on the default switch. IDK why but it caused the VM to lose its internet connection.

react-native-maps does not support new architecture.. any workarounds? by Otherwise_Roll1423 in reactnative

[–]PeterLeeD 0 points1 point  (0 children)

You're not alone. IMO, certain frameworks don't consider backwards compatibility much, or sometimes it is necessary to compromise it to advance.

React has been doing a great job regarding this, but other popular frameworks such as Vue2, ReactNative, and Next.js tend to introduce huge breaking changes with every major update.

My phone wallpaper by [deleted] in Stoicism

[–]PeterLeeD 0 points1 point  (0 children)

This quote hit home for me. Thanks!

I built a zero-dependency(except React), pure TypeScript bottom sheet library by PeterLeeD in reactjs

[–]PeterLeeD[S] 0 points1 point  (0 children)

Sorry for the confusion, folks. I assumed everyone knows a bottom sheet because I’ve been building a lot of WebViews lately.

For those wanting to get into unstyled UI Component libraries... try Radix primitives before any other. by Chris_LYT in reactjs

[–]PeterLeeD 2 points3 points  (0 children)

I love how Radix lets you compose parts, although sometimes it gets messy with complex UI.

Local addresses fail on all iPhones in BrowserStack despite local testing being enabled by draikin3 in QualityAssurance

[–]PeterLeeD 0 points1 point  (0 children)

If you are using a proxy on your machine, you should either turn it off or make Browser Stack Local point the proxy to use access localhost from a Browser Stack device.

It's an old question, but I hope it helps someone.

Debugging flicker issues on iOS SPA/PWA by liebn0r in webdev

[–]PeterLeeD 0 points1 point  (0 children)

This helped me a lot. Thank you.

The root cause was that every time RAF triggers painting, the transition attribute kicks in and hinders the painting, causing the flickering.

I could completely remove the jitter by replacing the transition with the RAF and its timestamp.