PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/Other / Miscellaneous/Akuna Capital

Implement React check-in/out month dropdowns

Last updated: Mar 29, 2026

Quick Overview

This question evaluates front-end React skills including controlled components, state synchronization, interdependent input validation, keyboard accessibility/ARIA, and unit testing for UI behavior, and it sits in the Front-end/UI development domain (Other/Miscellaneous) with an emphasis on practical implementation rather than purely conceptual reasoning. It is commonly asked because interviewers use it to verify an engineer's ability to enforce input constraints, integrate dropdowns with existing form state and submission flows, maintain accessibility with native controls, and provide test coverage for validation and disabled-option behavior.

  • medium
  • Akuna Capital
  • Other / Miscellaneous
  • Software Engineer

Implement React check-in/out month dropdowns

Company: Akuna Capital

Role: Software Engineer

Category: Other / Miscellaneous

Difficulty: medium

Interview Round: HR Screen

You are given a React codebase for a hotel reservation page. Enhance the UI by adding two dropdown menus: one for Check-in month and one for Check-out month. Requirements: ( 1) Render the two month dropdowns integrated with the existing form; months should be selectable (e.g., January–December). ( 2) Enforce that the selected Check-out month is not earlier than the Check-in month; disable invalid options accordingly. ( 3) Disable months earlier than the current month for both dropdowns. ( 4) Keep the components controlled and synchronize selections with the provided state management (e.g., props/callbacks or context) so the booking form receives updates. ( 5) Validate on change and on submit; block submission and show inline errors if the constraint is violated. ( 6) Ensure keyboard accessibility and proper ARIA labels. ( 7) Add unit tests covering state updates, disabled options, and validation behavior.

Quick Answer: This question evaluates front-end React skills including controlled components, state synchronization, interdependent input validation, keyboard accessibility/ARIA, and unit testing for UI behavior, and it sits in the Front-end/UI development domain (Other/Miscellaneous) with an emphasis on practical implementation rather than purely conceptual reasoning. It is commonly asked because interviewers use it to verify an engineer's ability to enforce input constraints, integrate dropdowns with existing form state and submission flows, maintain accessibility with native controls, and provide test coverage for validation and disabled-option behavior.

Akuna Capital logo
Akuna Capital
Aug 12, 2025, 12:00 AM
Software Engineer
HR Screen
Other / Miscellaneous
1
0

React UI Enhancement: Check-in/Check-out Month Dropdowns

Context

You are working on a hotel reservation form in a React codebase. The form needs two new, controlled dropdowns for selecting months: one for Check-in and one for Check-out. The selections must respect constraints based on the current month and each other. Assume the form already has state management and an onSubmit handler; you will integrate with it via controlled props/callbacks or context.

Requirements

  1. Render two month dropdowns (January–December) integrated with the existing form.
  2. Enforce that the selected Check-out month is not earlier than the Check-in month; disable invalid options accordingly.
  3. Disable months earlier than the current month for both dropdowns.
  4. Keep components controlled and synchronize selections with the provided state management (props/callbacks or context) so the booking form receives updates.
  5. Validate on change and on submit; block submission and show inline errors if constraints are violated.
  6. Ensure keyboard accessibility and proper ARIA labels.
  7. Add unit tests covering state updates, disabled options, and validation behavior.

Notes/Assumptions:

  • Months are for the current year only. Without year selection, the constraint is month-based only (e.g., September ≥ August). If you later add years, update the comparison accordingly.
  • Use native HTML select elements for built-in keyboard accessibility.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Other / Miscellaneous•More Akuna Capital•More Software Engineer•Akuna Capital Software Engineer•Akuna Capital Other / Miscellaneous•Software Engineer Other / Miscellaneous
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.