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`