modul:ffit:react:learningunits:lu01:using-variables

Dies ist eine alte Version des Dokuments!


LU01b - Using Variables

We can use variables to fill out our component dynamically. In JSX we have to use the curly brackets {} to display value.

export default function Product() {
  return (
    <div>
      <img 
        src="https://placehold.it/800" 
        alt="Product Image"
        width={300}
        height{300}
      />
    </div>
  );
}
  • modul/ffit/react/learningunits/lu01/using-variables.1733379482.txt.gz
  • Zuletzt geändert: 2024/12/05 07:18
  • von kdemirci