From 1548c477144957c82bf9c79a0222d8f28e02e755 Mon Sep 17 00:00:00 2001 From: Jaynil <100504976+010jjhere@users.noreply.github.com> Date: Tue, 25 Jun 2024 12:12:39 +0530 Subject: [PATCH] Update App.jsx reload output to switch between fundamental, core and crucial. --- attachments/03 React Essentials/App.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/attachments/03 React Essentials/App.jsx b/attachments/03 React Essentials/App.jsx index 630b1d4ad..a2535bf14 100644 --- a/attachments/03 React Essentials/App.jsx +++ b/attachments/03 React Essentials/App.jsx @@ -2,15 +2,16 @@ const reactDescriptions = ['Fundamental', 'Crucial', 'Core']; function genRandomInt(max) { return Math.floor(Math.random() * (max + 1)); -} +} function Header() { + const description = reactDescriptions[genRandomInt(2)]; return (
Stylized atom

React Essentials

- Fundamental React concepts you will need for almost any app you are going to build! + {description} React concepts you will need for almost any app you are going to build!

);