Created
April 8, 2017 12:43
-
-
Save gyver98/fedfe9ab47e7a16abeac94308a7ca68b to your computer and use it in GitHub Desktop.
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 from 'react'; | |
import './TeslaCar.css'; | |
const TeslaCar = (props) => ( | |
<div className="tesla-car tesla-car-animation"> | |
<div className="tesla-wheels tesla-wheels-animation"> | |
<div className={`tesla-wheel tesla-wheel--front tesla-wheel--${props.wheelsize}`}></div> | |
<div className={`tesla-wheel tesla-wheel--rear tesla-wheel--${props.wheelsize}`}></div> | |
</div> | |
</div> | |
); | |
TeslaCar.propTypes = { | |
wheelsize: React.PropTypes.number | |
} | |
export default TeslaCar; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment