How can I add multiple path for home page with react router dom 6?

Easiest way:

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


You can try this

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