Advice on how to design a component : <p>I'm new to react (in the sense that I haven't ever completed a project I've started), and trying to get a more solid idea of the workflow of building components.</p>

<p>I've cloned this project:
<a href="https://github.com/bjones256/facebook-clone" rel="nofollow noreferrer">https://github.com/bjones256/facebook-clone</a></p>

<p>The component I'm trying to make is a "score" component that will be listed on a user's profile. The score will be calculated by a combination of the amount of views and likes on the users posts.</p>

<p>I don't expect it to be done for me, but moreso I would like advice on the thought process behind how this component could be designed.</p>

<p>Currently I'm not seeing which functions count the amount of likes/comments on a post so that set them in the constructor for the score component. Any advice? I would use codementor, but I'm broke right now :P</p>
