Last active
June 9, 2017 18:27
-
-
Save panvourtsis/0d7fbb2ba258245c249613cada7b5e6c 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 PropTypes from "prop-types"; | |
function RatingsItem(props) { | |
return ( | |
<div> | |
{props.rating.text} | |
</div> | |
); | |
} | |
RatingsItem.propTypes = { | |
rating: PropTypes.shape({ | |
id: PropTypes.string.isRequired, | |
text: PropTypes.bool.isRequired, | |
reported: PropTypes.bool.isRequired, | |
}), | |
}; | |
export default RatingsItem; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment