Premium Hourly
PUBLISHED
Sep 4, 2025
Morningstar needs a React developer for a three-week project to refactor a component's state management. The task is to migrate a complex class component using local state (setState
) to a modern functional component using React Hooks (useState
, useEffect
, useContext
). This project requires a solid understanding of React Hooks and state management patterns. The goal is to improve code readability, maintainability, and performance. No certification is required, but demonstrable experience with React Hooks is a must.
We are modernizing parts of our React codebase and require a skilled developer to assist with the refactoring of a key component. The component in question is currently a large class component with complex state logic, making it difficult to maintain and test.
Your primary task is to convert this class component into a functional component while preserving all existing functionality. The refactoring process will involve:
this.setState
to the useState
and useReducer
Hooks.componentDidMount
, componentDidUpdate
) to the useEffect
Hook for handling side effects like data fetching.useContext
Hook to consume data from a shared context, reducing prop drilling.The ideal candidate will be proficient with the React Hooks API and have a good sense of how to structure functional components for clarity and scalability. You will work within our existing development workflow, creating a pull request for your changes that will be reviewed by our senior engineering team.