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 { Component } from "react"; | |
class Tweet extends Component { | |
render() { | |
return ( | |
<div> | |
{this.props.tweet.map(tweet => | |
<div key={news.tweet_id}> | |
{tweet.tweet_topic} | |
<br /> | |
{tweet.tweet_detail} |
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, |
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
const element = <h1>Hello, world!</h1>; |
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'; | |
class Timeline extends Component { | |
render() { | |
return ( | |
<div> | |
<Tweet /> | |
</div> | |
); | |
} |
NewerOlder