77 | );
78 | };
79 |
80 | export default Form;
81 |
82 | function useDropdownValue() {
83 | // warning, this is hacky
84 | // since the dropdown web component does not seem to respect
85 | // setting `value` as a controlled prop, this can easily get out of sync.
86 | //
87 | // so we have to manually ensure that during form resets
88 | // the value is in sync.
89 | const [value, setValue] = React.useState