Using the Image Component
Theory
- The Image component is used to display images in your app;
- It's similar to the HTML
<img>
tag; - You can set the source of the image using the
source
prop; - Including the image's dimensions by providing its width and height is important.
Example
In Practice
Var alt klart?
Tak for dine kommentarer!
Sektion 2. Kapitel 4
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
Suggested prompts:
Spørg mig spørgsmål om dette emne
Opsummér dette kapitel
Vis virkelige eksempler
Awesome!
Completion rate improved to 3.45
Using the Image Component
Stryg for at vise menuen
Theory
- The Image component is used to display images in your app;
- It's similar to the HTML
<img>
tag; - You can set the source of the image using the
source
prop; - Including the image's dimensions by providing its width and height is important.
Example
In Practice
Var alt klart?
Tak for dine kommentarer!
Sektion 2. Kapitel 4