This is my App.js:
function App() {
return (
<BrowserRouter>
<div>
<Routes>
<Route path="/" exact element={<Home />} />
<Route path="/creation" element={<Creation />} />
<Route path="/payment" element={<Payment />} />
</Routes>
</div>
</BrowserRouter>
);
}
export default App;
I need to pass a string generated in the "Creation page" to the "Payment page."
Meanwhile, once the string is generated on the creation page, the user should be automatically directed to the payment page. ( I have a solution for this: useNavigate( ) ).
Does anyone know what is the best solution to reach this goal?
I appreciate any help you can provide.