fac18 / react_game-rosa-pat-

react game
https://react-game-pat-and-rosa.netlify.com/
0 stars 2 forks source link

Props #18

Open tonylomax opened 4 years ago

tonylomax commented 4 years ago

When you pass props into your components from App.js it may be easier/more readable to just destructure in the argument for the component. You won't have to preprend props to everything then you can use the name of the state, function etc. Both are fine and work, I find the later more readable and you know precisely what you're passing in from the component view

tonylomax commented 4 years ago

Also do you need to pass photoArray as a prop into Header?