Moving from Classes to Function Components (useState, useEffect) - Comparing Function Component and Class Components