-
-
Save berkesayin/7a2e6de16aefccb68fe10343cf71a6d2 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 Home; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment