import {useHistory, useParams} from 'react-router';
const history = useHistory();
history.goBack() // history 자체 뒤로
history.push(`/monitorWarning/monitorConfig/monitorDetail/${alarmConfigId}`)
const {alarmConfigId} = useParams<{alarmConfigId: string}>();
useParams
history.replace
push
goBack