I have the following:
const MyPage = (props) => {
return (
<MyLayout {...props}>
...
I need to pass props to MyLayout, problem is eslint doesn't like this and is rejecting the code w:
unexpected block statement surrounding arrow body
How can I get the func to pass props and comply with eslint?
Thanks