From ca68e94b27c7bf54d82fd4bf78aad4b98251818f Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Wed, 17 Oct 2018 21:06:20 +0300 Subject: [PATCH] Update Collapse.md --- snippets/Collapse.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/Collapse.md b/snippets/Collapse.md index 348f7aaf2..5ab0b3145 100644 --- a/snippets/Collapse.md +++ b/snippets/Collapse.md @@ -6,7 +6,7 @@ Use the value of the `collapsed` prop to determine the initial state of the cont Set the `state` of the component to the value of the `collapsed` prop (cast to a boolean value) and bind the `toggleCollapse` method to the component's context. Use an object, `style`, to hold the styles for individual components and their states. Create a method, `toggleCollapse`, which uses `Component.prototype.setState` to change the component's `state` from collapsed to expanded and vice versa. -In the `render()` method, use a `React.Fragment` to wrap both the `