Skip to content

Commit 1016793

Browse files
committed
Setting HTML Attributes Dynamically & Loading Image Files
1 parent 2fa515c commit 1016793

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/App.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import reactImg from './assets/react-core-concepts.png';
2+
13
const reactDescriptions = ['Fundamental', 'Crucial', 'Core'];
24

35
function genRandomInt(max) {
@@ -9,7 +11,7 @@ function Header() {
911

1012
return (
1113
<header>
12-
<img src="src/assets/react-core-concepts.png" alt="Stylized atom" />
14+
<img src={reactImg} alt="Stylized atom" />
1315
<h1>React Essentials</h1>
1416
<p>
1517
{description} React concepts you will need for almost any app you are

0 commit comments

Comments
 (0)