Senior Frontend Engineer (React)

QuantumLeap Corp.

Full-time
San Francisco, CA

About the Role

QuantumLeap Corp. is seeking a talented Senior Frontend Engineer to build the next generation of our quantum computing simulation platform. You will work with cutting-edge technologies to create intuitive and powerful user interfaces for complex scientific data.

Skills & Requirements

React
TypeScript
Next.js
GraphQL
Web3

Coding Challenge

Component State Management Challenge

Refactor the following React component to use the `useReducer` hook instead of multiple `useState` calls for a more robust state management.

import { useState } from 'react';

function UserProfile() {
  const [name, setName] = useState('');
  const [email, setEmail] = useState('');
  const [isLoading, setIsLoading] = useState(false);
  const [error, setError] = useState(null);

  // ... component logic
  return <div>...</div>
}