Back to problems

Frontend Tech Execution — Reusable Dropdown Component

Object-Oriented Programming · Coinbase · Medium

Requirements Create a React component with the following behavior: Display a button that toggles the visibility of a menu. Receive the menu items through props. Invoke an onChange callback whenever the selection changes. Support both controlled usage, where the parent supplies the selected value, and uncontrolled usage, where the component stores that value itself. Tests will be available during development and must all pass, although test success alone does not complete the…

Checking your access…