I have a function that receives an array via props. I need to save this array in the state of component, so my component looks like this:
... cons