I would like to preserve a value in a react component even when the component has been updated and rerendered. I usually store it in the parent component, but in this case t