{props.description}
{props.price)
import Product from './Product.js';
export default function ProductsList() {
return (
Our Products
);
}
===== Using children of component =====
We can nest components and also use other elements in our component brackets.
Content.js
export default function Content(props) {
return (
{props.children}
)
}
App.js
import Content from "./Content.js"
import ProductsList from "./ProductsList.js"
export default function App() {
return (
This is my content.
)
}