Design Patterns · Middle · Question 65 of 75

What are prop getters?

const { getInputProps, getItemProps } = useCombobox(...);
<input {...getInputProps({ onKeyDown: myHandler })} />

Explanation

Users control markup while the library guarantees correct accessibility and event wiring.

Further reading

Problem with a question

Design Patterns · Middle · question 65

Test yourself

Take the Design Patterns · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz