Overview of React Router usage strategies
mainReact Router is a multi-strategy router for React designed to be flexible in how it is integrated into your application. You can use it in two primary ways:
- As a Framework: Use React Router as a full-stack framework with built-in features like server-side rendering, data loading, and optimized routing. This is the maximal usage pattern.
- As a Library: Use React Router minimally as a client-side routing library within your own existing architecture. This is the minimal usage pattern.
Depending on your choice, you will follow different installation and configuration paths.