Use the useState() hook to create a state variable, containing content and wordCount.Use the value prop and 0 as the initial values respectively. See the documentation below for a complete reference to all of the props and classes available to the components mentioned here. TextArea A default TextArea. Typically, you will control a text area by declaring a state variable: This is useful if you want to re-render some part of the UI in response to every keystroke.