PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/Software Engineering Fundamentals/Snowflake

Explain React classes, lifecycle, and hooks

Last updated: Apr 2, 2026

Quick Overview

This question evaluates understanding of React class and function components, lifecycle phases, Hooks (including state and effect handling), code reuse strategies, and common pitfalls such as stale closures and incorrect dependency arrays, measuring competency in frontend component architecture and state/side-effect reasoning.

  • medium
  • Snowflake
  • Software Engineering Fundamentals
  • Frontend Engineer

Explain React classes, lifecycle, and hooks

Company: Snowflake

Role: Frontend Engineer

Category: Software Engineering Fundamentals

Difficulty: medium

Interview Round: Technical Screen

In a frontend interview, explain several core React concepts: 1. Compare class components and function components in terms of syntax, state management, lifecycle handling, code reuse, and current best practices. 2. Describe the main lifecycle phases of class components: mounting, updating, and unmounting. Name representative lifecycle methods for each phase. 3. Explain how Hooks in function components address the same needs, especially `useState` and `useEffect`. 4. Discuss the Rules of Hooks and common pitfalls such as stale closures, incorrect dependency arrays, and unnecessary re-renders. Use concrete examples and explain when a modern React codebase should prefer one approach over the other.

Quick Answer: This question evaluates understanding of React class and function components, lifecycle phases, Hooks (including state and effect handling), code reuse strategies, and common pitfalls such as stale closures and incorrect dependency arrays, measuring competency in frontend component architecture and state/side-effect reasoning.

Snowflake logo
Snowflake
Jan 11, 2026, 12:00 AM
Frontend Engineer
Technical Screen
Software Engineering Fundamentals
0
0
Loading...

In a frontend interview, explain several core React concepts:

  1. Compare class components and function components in terms of syntax, state management, lifecycle handling, code reuse, and current best practices.
  2. Describe the main lifecycle phases of class components: mounting, updating, and unmounting. Name representative lifecycle methods for each phase.
  3. Explain how Hooks in function components address the same needs, especially useState and useEffect .
  4. Discuss the Rules of Hooks and common pitfalls such as stale closures, incorrect dependency arrays, and unnecessary re-renders.

Use concrete examples and explain when a modern React codebase should prefer one approach over the other.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Software Engineering Fundamentals•More Snowflake•More Frontend Engineer•Snowflake Frontend Engineer•Snowflake Software Engineering Fundamentals•Frontend Engineer Software Engineering Fundamentals
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.