!refactor constructor(props)
constructor(props) only called once in CC lifetime
useMemo to Memoization for rerender
import { useMemo } from "react";
function Image({index, title}) {
const id = useMemo(
() => Math.random()*100000,
[],
);
return <h1\>{id}</h1\>
};