PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Other / Miscellaneous/Nordstrom

Implement React logic with TypeScript hooks

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a developer's practical proficiency with React hooks and TypeScript typings, covering state and event handling, controlled versus uncontrolled inputs, list rendering with stable keys, and UI security considerations within the front-end domain.

  • medium
  • Nordstrom
  • Other / Miscellaneous
  • Software Engineer

Implement React logic with TypeScript hooks

Company: Nordstrom

Role: Software Engineer

Category: Other / Miscellaneous

Difficulty: medium

Interview Round: Onsite

Using React and TypeScript, implement a small UI that manages a list (add, edit, remove, filter). Use useState, useCallback, onChange, onClick, and useRef appropriately, and map over lists with stable keys. Explain controlled vs. uncontrolled inputs, asynchronous state updates, and how you pass and type parameters for event handlers. Discuss relevant security concerns in the UI and how you would mitigate them. If time permits, describe how you would extend the solution and how you would test it.

Quick Answer: This question evaluates a developer's practical proficiency with React hooks and TypeScript typings, covering state and event handling, controlled versus uncontrolled inputs, list rendering with stable keys, and UI security considerations within the front-end domain.

Nordstrom logo
Nordstrom
Jul 17, 2025, 12:00 AM
Software Engineer
Onsite
Other / Miscellaneous
5
0

React + TypeScript List Manager

Context

You are building a small UI during an onsite interview. Implement a list manager using React and TypeScript that supports add, edit, remove, and filter operations. Use modern React hooks and correct TypeScript typings.

Requirements

  1. Implement a list of items with these features:
    • Add a new item.
    • Edit an existing item inline.
    • Remove an item.
    • Filter items by a text query.
  2. React patterns and hooks:
    • useState for state.
    • useCallback for event handlers.
    • onChange for input changes; onClick for buttons.
    • useRef for at least one uncontrolled input or focusing.
    • Map over lists with stable keys (do not use array index).
  3. TypeScript:
    • Correctly type event handlers (e.g., React.ChangeEvent <HTMLInputElement> , React.MouseEvent <HTMLButtonElement> ).
  4. Explain:
    • Controlled vs. uncontrolled inputs (what you chose and why).
    • Asynchronous state updates and when to use functional updates.
    • How you pass and type parameters for event handlers.
  5. Security:
    • Discuss relevant UI security concerns (e.g., XSS) and mitigations.
  6. If time permits:
    • Describe extensions and a testing strategy.

Assumptions

  • Use a single React component for simplicity.
  • Items can be a simple shape: { id: string, text: string }.
  • Filter is case-insensitive substring match.

Solution

Show

Submit Your Answer

Sign in to leave a comment

Loading comments...

Browse More Questions

More Other / Miscellaneous•More Nordstrom•More Software Engineer•Nordstrom Software Engineer•Nordstrom Other / Miscellaneous•Software Engineer Other / Miscellaneous
PracHub

Master your tech interviews with 8,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.