WhatsApp-Clone-Tutorial
WhatsApp-Clone-Tutorial copied to clipboard
[Client Step 1.8] change src/components/ChatsListScreen/ChatsList.tsx
https://github.com/Urigo/WhatsApp-Clone-Tutorial/assets/136796752/2d9472fa-dd66-4c9a-bf60-772f3ab94920
import React from 'react';
import { chats } from '../../db';
const ChatsList: React.FC = () => (
<div>
<ul>
{chats.map((chat) => (
<li key={chat.id}>
<img src={chat.picture} alt="Profile" />
<div>{chat.name}</div>
</li>
))}
</ul>
</div>
);
export default ChatsList;