From 9d9032fda7cf2eaf1dd93ac1956a972467b62179 Mon Sep 17 00:00:00 2001 From: Isabelle Viktoria Maciohsek Date: Mon, 16 Nov 2020 16:50:57 +0200 Subject: [PATCH] Update snippet descriptions --- snippets/LimitedTextarea.md | 33 ++++++++++----------- snippets/LimitedWordTextarea.md | 51 +++++++++++++++++---------------- snippets/Ticker.md | 42 --------------------------- snippets/Toggle.md | 37 +++++++++++++++--------- snippets/TreeView.md | 44 +++++++++++++++++----------- 5 files changed, 95 insertions(+), 112 deletions(-) delete mode 100644 snippets/Ticker.md diff --git a/snippets/LimitedTextarea.md b/snippets/LimitedTextarea.md index d7689b864..237d776c3 100644 --- a/snippets/LimitedTextarea.md +++ b/snippets/LimitedTextarea.md @@ -1,29 +1,27 @@ --- title: LimitedTextarea -tags: components,state,effect,event,beginner +tags: components,state,callback,event,beginner --- Renders a textarea component with a character limit. -- Use the `React.useState()` hook to create the `content` state variable and set its value to `value`. - Create a method `setFormattedContent`, which trims the content of the input if it's longer than `limit`. -- Use the `React.useEffect()` hook to call the `setFormattedContent` method on the value of the `content` state variable. -- Use a`
` to wrap both the`