====== LU01b - Using Variables ====== We can use variables to populate our component dynamically. In JSX we need to use the curly brackets {} to display the value. If we add the parameter "props" to our function, we can use it in our function to display the value given to this component. Product.js export default function Product(props) { return (
Product Image

{props.title)

{props.description}

{props.price)

); }
ProductsList.js 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.
) }