Avoiding state
"Currently, we don't need state; however, when we fetch the dynamic data from RecentChanges
API, we will use state with props." Mike added.
"Cool. Based on our discussion, I think that we should avoid state as much as possible." Shawn suggested.
"True. If a component does not change, then there is no need to use state. It's better to depend on props passed by the parent component in that case. This also avoids re-rendering of the component again and again as changes to state initiate a re-render of the component." Mike explained.