Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung | |||
| modul:ffit:react:learningunits:lu01:defining-a-component [2024/12/05 07:07] – kdemirci | modul:ffit:react:learningunits:lu01:defining-a-component [2024/12/05 07:08] (aktuell) – kdemirci | ||
|---|---|---|---|
| Zeile 30: | Zeile 30: | ||
| ===== Export the component ===== | ===== Export the component ===== | ||
| - | Now we have a component. But if we want to use it in other files, we have to export the function. To export a component, you have to add the keywords " | + | Now we have a component. But if we want to use it in other files, we need to export the function. To export a component, you need to add the keywords " |
| Product.js | Product.js | ||