Suggestion for easy-to-use encapsulation of Creatable #4381
FrancisVila
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
*updated above comment to put code suggestion in code block for better readability |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
This might be better to enter as a Pull Request but I'm not too familiar with the process...
I find the Creatable.js component is great. However I struggled to get it to work, particularly selecting the newly-created option. Also I was confused in the documentation by the use of react-hook-form; it was difficult to separate in the code what came from react-hook-form and what came from react-select.
To that effect, I created an encapsulation component. Advantages:
More examples in the code below
Beta Was this translation helpful? Give feedback.
All reactions