In my React application, I am working on a feature that allows users to add multiline comments with various text styling options such as bold, italic, underline, font selection, and color changes. This is similar to the text editor functionality found on many websites.
Furthermore, I want the applied styles to be saved in a useState hook along with the text content.
Refer to the screenshot below for a visual representation: