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 Stars = (props) => { | |
/* | |
let stars = []; | |
for(let i=0; i<numberOfStars; i++){ | |
stars.push(<i key={i} className="fa fa-star"></i>); | |
} | |
*/ | |
return ( | |
<div className="col-5"> |
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 Stars = (props) => { | |
/* | |
let stars = []; | |
for(let i=0; i<numberOfStars; i++){ | |
stars.push(<i key={i} className="fa fa-star"></i>); | |
} | |
*/ | |
return ( | |
<div className="col-5"> |
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 Stars = (props) => { | |
/* | |
let stars = []; | |
for(let i=0; i<numberOfStars; i++){ | |
stars.push(<i key={i} className="fa fa-star"></i>); | |
} | |
*/ | |
return ( | |
<div className="col-5"> |
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 Stars = (props) => { | |
/* | |
let stars = []; | |
for(let i=0; i<numberOfStars; i++){ | |
stars.push(<i key={i} className="fa fa-star"></i>); | |
} | |
*/ | |
return ( | |
<div className="col-5"> |
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 Stars = (props) => { | |
/* | |
let stars = []; | |
for(let i=0; i<numberOfStars; i++){ | |
stars.push(<i key={i} className="fa fa-star"></i>); | |
} | |
*/ | |
return ( | |
<div className="col-5"> |
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 Stars = (props) => { | |
/* | |
let stars = []; | |
for(let i=0; i<numberOfStars; i++){ | |
stars.push(<i key={i} className="fa fa-star"></i>); | |
} | |
*/ | |
return ( | |
<div className="col-5"> |
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 Stars = (props) => { | |
const numberOfStars = 1 + Math.floor(Math.random()*9); | |
/* | |
let stars = []; | |
for(let i=0; i<numberOfStars; i++){ | |
stars.push(<i key={i} className="fa fa-star"></i>); | |
} | |
*/ | |
return ( | |
<div className="col-5"> |
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
.mountNode { | |
color: #333; | |
} | |
.fa-star{ | |
margin: 0.5em; | |
font-size: 24px; | |
} | |
span { |
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 Card = (props)=> { | |
return ( | |
<div style={{margin: '1em'}}> | |
<img width="75" src={props.avatar_url} /> | |
<div style={{display: 'inline-block', marginLeft:10}}> | |
<div style={{fontSize: '1.25em', fontWeight: 'bold'}}>{props.name}</div> | |
<div>{props.company}</div> | |
</div> | |
</div> | |
); |
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 Card = (props)=> { | |
return ( | |
<div style={{margin: '1em'}}> | |
<img width="75" src={props.avatar_url} /> | |
<div style={{display: 'inline-block', marginLeft:10}}> | |
<div style={{fontSize: '1.25em', fontWeight: 'bold'}}>{props.name}</div> | |
<div>{props.company}</div> | |
</div> | |
</div> | |
); |