score:1

<Route path={['/', '/login', '/home']} element={<Login />} />

score:1

<Route path={['/', '/login', '/home']}  element={<Login />} />

score:1

<Routes>
  {renderPaths(["/", "/home", "/login"], <Login />)}
</Routes>

score:2

<Route path='/' element={<Login />} />
<Route path='/login' element={<Login />} />
<Route path='/home' element={<Login />} />

score:2

<Route path="/" element={<YourComponent />} />

<Route path="/login" element={<YourComponent />} />

<Route path="/home" element={<YourComponent />} />

Related Query

More Query from same tag