Nik Graf details a little trick I also use from time to time: changing the key
of a React component to force remount it.
Upon clicking a contact in the list, the active contact’s id
is used as the key
for the Detail
component.
<Detail key={activeContact.id} contact={activeContact} />