I want to use the useRouteMatch
hook inside a class-based component in React because it simplifies passing parameter to component. Using this hook inside class component throws error. What is the equivalent of this hook to use in a React class?
基于类的组件的useRouteMatch等效于什么?
评论
请
登录后发表观点