![rich text editor react rich text editor react](https://forums.hybridz.org/uploads/monthly_09_2014/post-41012-0-17782700-1410216241.jpg)
When you’re ready to do something with the content entered, for example, when a save or submit button is pressed, you can access the current value directly from the component’s state. This means value is always updated to reflect the current value of textarea. Then, every time textarea changes, the handleChange() function uses setState() to update content with the new value. The textarea value is set initially with value=.
![rich text editor react rich text editor react](https://reactjsexample.com/content/images/2017/09/reactquill.gif)
This component makes use of a state variable content (initially '') to set and keep track of the textarea value.