// src/App.jsx
function TwoColumn({ left, right }) {
return (
);
}
function App() {
return (
This is the sidebar content.}
right={
Main content
This is the main column.
}
/>
);
}
export default App;
/*
Notes:
- left and right are passed as JSX values, just like any other
prop — wrapped in curly braces, the same as passing a number or
a string would be.
- TwoColumn places each one in its own div without needing to know
anything about what's actually inside either one.
*/