<Route
path={CONFIRM_DELETE_INSTITUTE}
handle={({
match: {
params: { instituteIndex },
},
}) => <ConnectedInstituteConfirmDelete instituteIndex={Number(instituteIndex)} />}
/>
I'm using react-router-dom v5 and now I want to migrate it to v6 . How I can convert this code to v6.