Using explicit route configuration

Version

wip

Status

ACCEPTED

Revision Comment

Initial Version

Commit

(worktree)

Repository

https://github.com/rattermeyer/rr-mantine-template.git

Last Re-evaluation

25.1 - 11.03.2025

Last Reviewers

Richard Attermeyer

Contributors

Richard

Informed

Team

Keywords

react, react-router, framework

Superseded by

Context and Problem Statement

Routes can be configured differently in react router. React Router provides different mechanisms

  • explicit configuration using routes.ts (default)

  • file-convention-based route config (alternative, default in remix)

  • combining mechanisms

Architectural Drivers

Decision

Using explicit configuration using routes.ts

We chose this solution, because it is the new default and provides more flexible configuration mechanisms.

Relationship to other Architectural Decisions

Consequences

Considered Alternatives

File-based conventions as in Remix