A Navigate element changes the current location when it is rendered. It's a component wrapper around useNavigate, and accepts all the same arguments as props.
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
);
root.render(
<App />
);