react-router-dom is module which handles routing.
hooks:- useParams:- is used to looking data in url. In our React app sometimes we want to access the parameters of the current route in this case useParams hook comes into action.
useState:- it stores previous values untill unless it is updnated.