From 17709abeaa3a77fcada40d8a65cf916c301cf2ca Mon Sep 17 00:00:00 2001
From: Muhammad Humayoon <130804579+mhumayoonkh@users.noreply.github.com>
Date: Sat, 5 Apr 2025 09:29:48 +0500
Subject: [PATCH] Update App.jsx
Updated App.jsx to add dinamic values from data.jsx
---
attachments/03 React Essentials/App.jsx | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/attachments/03 React Essentials/App.jsx b/attachments/03 React Essentials/App.jsx
index 630b1d4ad..d30082c5a 100644
--- a/attachments/03 React Essentials/App.jsx
+++ b/attachments/03 React Essentials/App.jsx
@@ -1,17 +1,16 @@
const reactDescriptions = ['Fundamental', 'Crucial', 'Core'];
+import { CORE_CONCEPTS } from "./data.js"
function genRandomInt(max) {
return Math.floor(Math.random() * (max + 1));
}
-function Header() {
+function Header(props) {
return (
- Fundamental React concepts you will need for almost any app you are going to build!
- {props.description}
-
React Essentials
-
+
{props.title}
+