useMemo in class component. As per React docs: If you want to re-compute some data only when a prop changes, use a memoization helper.
確定! 回上一頁