2021-04-08 Migrate to useEffect TL;DR 123456789101112131415import { useRef, useEffect } from 'react'const mounted = useRef(false)useEffect(() => { if (mounted.current) { mounted.current = true; // componentDidMount part } else { // componentDidUpdate part } return () => { // componentWillUnmount part }}, Array_of_subscribed_props_and_states) Newer Handling Large Integers in JavaScript Older Compare Two Tables in SQL