Put in order · JavaScript and React course · Module 15: Patterns and Architecture
Headless Hook useDropdown Syntax
Arrange the destructuring syntax for the useDropdown headless hook result:
Items to put in order
- getToggleProps,
- const { isOpen,
- = useDropdown(options);
- getOptionProps }
- selectedOption,
You can check the correct answer by solving this task in the CodeWorlds game.