Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update React app architecture #1438

Open
ao508 opened this issue Mar 5, 2025 · 0 comments
Open

Update React app architecture #1438

ao508 opened this issue Mar 5, 2025 · 0 comments

Comments

@ao508
Copy link
Collaborator

ao508 commented Mar 5, 2025

Context

  • We currently use Create React App (CRA) as the tool to manage configs, dependencies, and bundle JS code
  • CRA has not been a recommended tool for some time. It was deprecated this year, but it got removed from the React.js docs all the way back in 2022
  • The React.js docs now recommends Next.js as a solution for production-grade frontend apps

New features

  • Performance
    • Code splitting
      • CRA sends the entire JS code bundle to the client regardless of what page was requested
      • Next.js “splits up” the JS code bundle and only sends what’s needed
    • Server side rendering
  • Developer experience
    • One server instance instead of having separate frontend React.js and backend Node.js server
      • A single set of dependencies instead of separate sets => faster build time
    • Built-in file-based routing and API endpoints => less code and more structure in codebase
@qu8n qu8n changed the title Update react app Update React app architecture Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant