Skip to content

[Feature]:Use Absolute Imports in Jaeger-UI #2560

Open
@yashpandey06

Description

@yashpandey06

Requirement

Using absolute imports improves:

  • Code Readability: No more long and complex relative paths.
  • Maintainability: Refactoring becomes easier as file paths are consistent.
  • Scalability: Simplifies project navigation in large codebases.
import Button from '../../components/Button';
import Header from '../../../shared/Header';

Absolute imports
import Button from 'components/Button';
import Header from 'shared/Header';


### Problem

The problem with relative imports in React projects arises as the codebase grows larger and more complex.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions