From cbb8c6064e3886bec04de9bc6cf33d5206b175b5 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Wed, 27 Feb 2019 15:11:51 +0200 Subject: [PATCH] Update MultiselectCheckbox.md --- snippets/MultiselectCheckbox.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/MultiselectCheckbox.md b/snippets/MultiselectCheckbox.md index d10992ca2..6c10822a8 100644 --- a/snippets/MultiselectCheckbox.md +++ b/snippets/MultiselectCheckbox.md @@ -1,6 +1,6 @@ ### MultiselectCheckbox -Renders a checkbox list that uses a callback function to pass its selected value/values to the parent component. . +Renders a checkbox list that uses a callback function to pass its selected value/values to the parent component. Use `React.setState()` to create a `data` state variable and set its initial value equal to the `options` prop. Create a function `toggle` that is used to toggle the `checked` to update the `data` state variable and call the `onChange` callbac passed via the component's props.