Skip to content

Instantly share code, notes, and snippets.

@gyver98
Created April 8, 2017 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gyver98/fedfe9ab47e7a16abeac94308a7ca68b to your computer and use it in GitHub Desktop.
Save gyver98/fedfe9ab47e7a16abeac94308a7ca68b to your computer and use it in GitHub Desktop.
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