diff --git a/snippets/Select.md b/snippets/Select.md index f4d979a93..5af725fef 100644 --- a/snippets/Select.md +++ b/snippets/Select.md @@ -7,7 +7,8 @@ Renders a `` element. - Render a `` element. +- Use the `selected` attribute to define the `defaultValue` of the ` callback(value)} > {values.map(([value, text]) => ( - ))} ); } + +let choices = [ + ['grapefruit', 'Grapefruit'], + ['lime', 'Lime'], + ['coconut', 'Coconut'], + ['mango', 'Mango'] +]; +ReactDOM.render( +