Skip to content

Implementing fields with selection dependent options and also loading selections from an API #10534

Answered by leapful
alainacook asked this question in Q&A
Discussion options

You must be logged in to vote

@alainacook

You can simplify the clear state handling by clear only for onChange of country field.

Working demo: https://codesandbox.io/s/heuristic-blackwell-r8cwcy?file=/src/App.js

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alainacook
Comment options

Answer selected by alainacook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants