Skip to content

Instantly share code, notes, and snippets.

@panvourtsis
Last active June 9, 2017 18:27
Show Gist options
  • Save panvourtsis/0d7fbb2ba258245c249613cada7b5e6c to your computer and use it in GitHub Desktop.
Save panvourtsis/0d7fbb2ba258245c249613cada7b5e6c to your computer and use it in GitHub Desktop.
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