Last active
May 8, 2024 15:09
-
-
Save berkesayin/9d5a4dd5398e36eb5cbdded995469406 to your computer and use it in GitHub Desktop.
props
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import Tweet from '../component/Tweet'; | |
const tweet = [ | |
{ | |
tweet_id: 1, | |
tweet_topic: "Sports", | |
tweet_detail: "Liverpool, Manchester City ile arasındaki puan farkını 1'e düşürdü." | |
}, | |
{ | |
tweet_id: 2, | |
tweet_topic: "Economy", | |
tweet_detail: "Emeklilere müjde = Yeni zam yolda!" | |
}, | |
]; | |
class Timeline extends Component { | |
render() { | |
return ( | |
<div> | |
<Tweet tweet={tweet} /> | |
</div> | |
); | |
} | |
} | |
export default Timeline; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment