title: How can I add a new row to the list when I press the button in React?
body: <p>I have an input, button and when this button is pressed it adds a new row to the table list. I get such an array from API. Only the first 8 of this array are good for me. I got the first 8 of them with the slice method.  I have read some posts about this but could not understand. How can I do that?
  <a href="https://i.stack.imgur.com/S50FH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/S50FH.png" alt="enter image description here" /></a></p>