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
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