how many instances of : are there in:
q: sharepoint spfx - creating comment section using textarea field im building a sharepoint spfx using react.
in one of my components i want to have a comment section. where a user can write a comment and then submit it to my multiple lines of text field called comments. i currently have append changes to existing text set to `yes.
below i have a textarea to allow users to type a comment and then on submit im sending that comment to the comment field. however when someone submits another comment will this erase previous comments?
//area to add comment
<textarea 
    value={this.state.comments} 
    onchange={this.handlechangecomments}
    rows={10}
    required 
/>

<button onclick={this.submitcomment.bind(this)}>submit</button>

//function to submit comment 
submitcomment(event) {
    event.preventdefault();
    pnp.sp.web.lists.getbytitle(requests).items.getbyid(120).update({
        comments: this.state.comments,              
    }).then(i => {
        console.log(i);
    });
} 

on another component i will make a call to display the comments and want it to look something similar to this:
<h4>comments below</h4>
<div>
   <p>first comment here</p>
   <p>07/12/2020 (get the date of submission i have a get_date function)</p>
</div>
<div>
   <p>second comment here that was left</p>
   <p>07/10/2020</p>
</div>
<div>
   <p>another comment here</p>
   <p>06/8/2020</p>
</div>

so i want that field to continue to hold all comments submitted and a way to loop through each one. for comments i dont see there being any long comments or more than 10 comments added.
i was using this for reference: https://sharepointmaven.com/how-to-track-comments-with-append-changes-functionality-in-sharepoint-list/

a: pnp open-source projects offer a sample web part advanced comments box that provided comment feature.

*

*https://github.com/pnp/sp-dev-fx-webparts/blob/master/samples/js-advanced-commenting/readme.md
with a little modification, you can configure this comment box for every section.

*

*https://github.com/kongmengfei/sharedspfx/blob/master/js-advanced-commenting/readme.md


user
The given text has eight ":"s.
assistant