To break a mock into a component heirarchy : every Component draw around it a box, each box has the same name of the component . The component has its own functionality(“only do one thing”). Then map the Json data model with User Interface . *********************
single responsibility principle is a technique to make each component do only one function and then convert to small subComponent. Each component matches one section in the model of Data.
arranging component into a hierachy. will appear the component as a child.
if the data passed from parent using props , isn’t state.
if the data unchanged , is’nt state.
if the data can computed by another state or component , isn’t state.
every component render anything based on that state must be identify.
identify component contain all component related to the state.
the common or another component should have the state.