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

[FEAT][GLOBAL]: Migrate From React to Next.js 14 with Modular CSS #58

Open
RajVarsani opened this issue Jan 3, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@RajVarsani
Copy link
Member

RajVarsani commented Jan 3, 2024

Background and Motivation

The current codebase utilizes native React.js, which, as the project scales, is becoming increasingly difficult to manage and optimize. To improve the performance, scalability, and maintainability of our web application, we propose a migration of the codebase to Next.js 14 coupled with a transition to modular CSS. Next.js offers several benefits including automatic routing, built-in image optimization, server-side rendering (SSR), static site generation (SSG), and API routes. Modular CSS will help isolate styles, preventing unexpected conflicts and cascading issues, and promote reuse of styles across components.

Task Description

  • Migrate the entire current React.js codebase to Next.js 14.
  • Refactor the styling approach to use modular CSS, ensuring styles are scoped to individual components to prevent global namespace pollution.
  • Test all components and pages to ensure they are functioning correctly with Next.js and modular styles without visual or functional regressions.
  • Update any necessary build and deploy scripts to accommodate Next.js’s build process.

Goals

  • Enhance the application's performance, SEO, and user experience by leveraging Next.js features.
  • Improve CSS maintainability and reduce style conflicts by implementing modular CSS.

Challenges

  • Addressing potential mismatches between React.js and Next.js in terms of project structure and SSR capabilities.
  • Migrating existing global styles to a modular architecture without impacting the user interface.

Dependencies

  • Installation of the Next.js framework and necessary plugins or packages.
  • A thorough review of the existing component library to ensure compatibility with modular CSS.

Expected Outcome

A successfully migrated codebase to Next.js 14 with modular CSS that passes all tests and performs optimally with improved code maintainability and no regressions in functionality or appearance

Resources:

@RajVarsani RajVarsani added the enhancement New feature or request label Jan 3, 2024
@RajVarsani RajVarsani changed the title [FEAT][GLOBAL]: Migrate Current React Codebase to Next.js 14 with Modular CSS Implementation [FEAT][GLOBAL]: Migrate From React to Next.js 14 with Modular CSS Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant