convert repo to state. React updates when state changes, not prop