Javascript – Are useMemo and useEffect callback good places to run code only at the birth and death of a React component?
I want to hook into two lifecycle events of a React component. When it's born, and when it dies. When it's born, I want to load some data from the URL or local storage, and that data should not change…