« first day (3504 days earlier)      last day (1278 days later) » 

02:52
@Kuba @CarlLange A normal way to re-initialize a child component in React is to change the special property called "key". So like if you have a details component with some initialization logic and you choose a new item in the list to show in the details component and you pass that new item into the details, it might update the details display but not re-run the initialization logic for the component. But if you have something like <Details key={selectedItem.id} item={selectedItem} />
It will reset the child component
So I'm not updating the existing component with new info, I'm creating a whole new copy of that component and removing the old one because it has a different key. React also uses key properties to optimize updates to lists of items.

« first day (3504 days earlier)      last day (1278 days later) »