Hoşgeldin Misafir

Reactjs "unique key prop" hatası

GozGoz

26 Ara 2017
599 Mesaj

Aktiflik

Seviye

Deneyim

TIM / GÖREV:
React ile bir web uygulaması yazıyorum ama bu hatayı aldım. Neyi gözden kaçırıyorum anlamadım. Kodları ekledim.

JavaScript:panoya kopyala

Kod:
import { useEffect, useState } from "react";
import Post from "../post/Post";
import Share from "../share/Share";
import "./feed.css";
import axios from "axios";

export default function Feed() {
 const [posts, setPosts] = useState([]);

 useEffect(() => {
 const fetchPosts = async () => {
 const res = await axios.get("posts/timeline/6639f636d663303ec4b65925")...

Read more