Skip to content

Conversation

@Manik-Khajuria-5
Copy link
Contributor

@Manik-Khajuria-5 Manik-Khajuria-5 commented Jan 8, 2026

Issue
Contributes to #4460


Description

This PR refactors View.jsx from a legacy class-based React component into a modern functional component using React Hooks (useState, useEffect, etc.).


Key Changes

  • Converted View.jsx from a class component to a functional component
  • Replaced lifecycle methods (componentDidMount, etc.) with appropriate React Hooks
  • Updated internal state handling with useState
  • Improved data-fetching and side-effect logic using useEffect
  • Removed constructor and redundant method bindings
  • Preserved all original props, UI, rendering, and conditional logic
  • Ensured behavior parity with the previous implementation


@Manik-Khajuria-5 Manik-Khajuria-5 marked this pull request as ready for review January 8, 2026 14:48
@Manik-Khajuria-5 Manik-Khajuria-5 marked this pull request as draft January 8, 2026 14:49
@Manik-Khajuria-5 Manik-Khajuria-5 marked this pull request as ready for review January 8, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant