Skip to main content

React js interview questions for 3 year experience - Concepts

 For a React.js interview at a 3-year experience level, you should focus on the following topics:

1. Core React Concepts

  • React Component Lifecycle (class & functional components)
  • React Hooks (useState, useEffect, useContext, useMemo, useCallback, useRef, etc.)
  • JSX, Virtual DOM, and Reconciliation
  • Props vs. State
  • Controlled vs. Uncontrolled Components
  • Error Boundaries

2. Advanced React

  • Higher-Order Components (HOCs)
  • Render Props Pattern
  • Context API vs. Redux (when to use what)
  • React Suspense & Lazy Loading
  • Custom Hooks
  • React Portals

3. State Management

  • Local State (useState, useReducer)
  • Global State Management (Redux Toolkit, Context API)
  • Apollo Client for GraphQL State Management

4. Performance Optimization

  • React.memo, useMemo, useCallback
  • Code Splitting & Lazy Loading
  • Avoiding unnecessary re-renders
  • Profiling React Apps

5. React with TypeScript (if applicable)

  • Props & State Types
  • Function Components with TypeScript
  • Utility Types in React

6. React Testing

  • Jest & React Testing Library
  • Unit Testing vs. Integration Testing
  • Mocking API calls

7. API Handling

  • Fetch & Axios
  • Handling API Errors & Loading States
  • GraphQL with Apollo Client

8. React with Next.js (optional but good to know)

  • SSR, SSG, ISR
  • API Routes in Next.js
  • Image Optimization

9. UI Libraries & Styling

  • Styled Components, Emotion
  • Tailwind CSS, Material-UI, Ant Design

10. React Interview Questions

  • Theoretical Questions

    • Difference between functional and class components?
    • How does React handle reconciliation?
    • What is the purpose of useEffect?
    • When to use useMemo vs. useCallback?
    • How does React handle form validation?
  • Coding Challenges

    • Implement a custom hook (e.g., useFetch, useDebounce)
    • Build a To-Do app with CRUD operations
    • Optimize performance in a given React compon

Comments

Popular posts from this blog

MySQL's ACID compliance

Mysql acid compliance ACID is an acronym that stands for four key properties of database transactions: Atomicity Ensures that a transaction is treated as a single, indivisible unit of work Either all operations within a transaction are completed successfully, or none are If any part of the transaction fails, the entire transaction is rolled back to its previous state Prevents partial updates that could leave the database in an inconsistent state Consistency Guarantees that a transaction brings the database from one valid state to another valid state All data written to the database must adhere to defined rules, constraints, cascades, triggers, and other database integrity mechanisms Ensures that any transaction will not break the database's predefined rules Isolation Determines how and when changes made by one transaction become visible to other transactions Prevents interference between concurrent transactions MySQL provides different isolation levels: Read Uncommitted Read Commit...

PHP OOPs exercise - Basic Oops

  Here are key PHP OOP (Object-Oriented Programming) exercise questions with solutions: Basic Class and Object Exercise: // Create a simple bank account class class BankAccount {     private $accountNumber;     private $balance;     public function __construct($accountNumber, $initialBalance = 0) {         $this->accountNumber = $accountNumber;         $this->balance = $initialBalance;     }     public function deposit($amount) {         if ($amount > 0) {             $this->balance += $amount;             return true;         }         return false;  ...

Interview questions for Senior PHP Developer particle41.com

1.Self Introduction 2.Basic questions on session and cookie. 3.Where is session stored? 4.Difference between Cookie and session. 5.Will there be any session before session start? 6.Post Max execution time.How can we modify it? 7.We have a string, "BJFSJK".Without any php function reverse it with half the string length.   To reverse the string with half the string length without using any PHP functions, you can implement a simple algorithm to achieve the desired result. Here's how you can do it: Initialize two pointers, one at the beginning of the string and the other at the midpoint of the string. Swap characters between these two pointers iteratively, moving the pointers towards each other until they meet or cross each other. Here's the PHP code to implement this algorithm:  <?php $string = "ABC100"; $length = strlen($string); // Calculate the midpoint of the string $midpoint = (int)($length / 2); // Initialize pointers $start = 0; $end = $length - 1; //...