const layout = (props) =>(
<Aux>
<div>Toolbar, SideBar, BAckdrop</div>
<main>
<p> hi </p>
</main>
</Aux>
)
my app component
class App extends Component {
render() {
return (
<div>
<Layout>
<p>Test</p>
</Layout>
</div>
);
}
}
The following is the code of my react component and rendering inside my app.js
1) I have replaced the code with { } then it showed error nothing render or return make sense because we have to explicitly say some return to your component then how () brackets are returning without any react
2) so what do () in react means
3) I am wondering if the above code is an arrow function how can it return all the jsx code because in arrow function we are able to return only one variable correct be if i am wrong