title: React and firebase setState 'you must specify the "to" property'
body: <p>I tried many hours but can't seem to find what I am doing wrong, I am new to react so I really appreciate your help. I first had an array state of accommodations, then I looped through them with a map function and everything was ok. But after I connected firebase with the project the map function didn't work because firebase was an object so I had to change the map function and assign Object.keys first. Then there is an error that says 'you must specify the "to" property' highlighting me the setState method. I have an image attached to the error. I am so sorry for my poor English, thank you so much for your help</p>
  
  <p><a href="https://i.stack.imgur.com/J4uQZ.png" rel="nofollow noreferrer">ErrorImage</a></p>
  
  <p><a href="https://i.stack.imgur.com/J4uQZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/J4uQZ.png" alt="enter image description here"></a></p>