init: add code
This commit is contained in:
parent
475596444a
commit
1e09c02cb9
20 changed files with 2432 additions and 147 deletions
11
app/routes/view.tsx
Normal file
11
app/routes/view.tsx
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import Post from '../components/post.tsx';
|
||||
import { useLocation } from "react-router";
|
||||
|
||||
export default function ViewPost() {
|
||||
const location = useLocation();
|
||||
const statePostId = location.state?.parentId;
|
||||
|
||||
return (
|
||||
<Post postId={statePostId} />
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue