Update index.jsx

Added handling for a viewOnly prop.  When truthy it means that the rating can only be viewed, and not updated.  Useful for when you only want to browse ratings, but not allow a person to update them.