mirror of
https://github.com/bubblecup-12/VogelSocialMedia.git
synced 2025-07-09 20:18:48 +00:00
basic post done
This commit is contained in:
parent
44e17e6287
commit
eba5d5edd7
3 changed files with 191 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
import React, { useState, useEffect, useRef } from "react";
|
||||
import TestPost from "../TestPost";
|
||||
import "./feed.css";
|
||||
import Post from "../Post";
|
||||
|
||||
function Feed() {
|
||||
const [posts, setPosts] = useState<number[]>([]);
|
||||
|
@ -48,6 +49,7 @@ function Feed() {
|
|||
|
||||
return (
|
||||
<div className="feedContainer">
|
||||
<Post/>
|
||||
<main className="feedContent" ref={feedRef}>
|
||||
{posts.map((postId, idx) => (
|
||||
<TestPost key={idx} postId={postId} />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue