refactor: code refactor
This commit is contained in:
6
app/routes/blog/useMatch.ts
Normal file
6
app/routes/blog/useMatch.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { useMatches } from "@remix-run/react";
|
||||
|
||||
export function useMatch() {
|
||||
const matches = useMatches();
|
||||
return matches[matches.length - 1];
|
||||
}
|
Reference in New Issue
Block a user