The ChipsList component must be able to take a series of key-value pairs that determine the value prop and the displayed text of the internal input elements.
There are two ways we could go about this:
Build a Vec of pairs that are passed in to the component
Build the Vec of pairs by taking both a values and display_text prop, then using zip inside the component's logic
I personally think that the first option is better - it allows for error handling outside of the component, which prevents some hiding of logic and improves readability.
The `ChipsList` component must be able to take a series of key-value pairs that determine the `value` prop and the displayed text of the internal `input` elements.
There are two ways we could go about this:
- Build a `Vec` of pairs that are passed in to the component
- Build the `Vec` of pairs by taking both a `values` and `display_text` prop, then using `zip` inside the component's logic
I personally think that the first option is better - it allows for error handling outside of the component, which prevents some hiding of logic and improves readability.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The
ChipsListcomponent must be able to take a series of key-value pairs that determine thevalueprop and the displayed text of the internalinputelements.There are two ways we could go about this:
Vecof pairs that are passed in to the componentVecof pairs by taking both avaluesanddisplay_textprop, then usingzipinside the component's logicI personally think that the first option is better - it allows for error handling outside of the component, which prevents some hiding of logic and improves readability.
Closing this issue as it is an accidental duplicate of #14.