/* doing <Route exact path='/' element={<Home/>}/> instead of <Route exact path='/' element={Home}/> worked for me.