We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ef63d4 commit 2fa515cCopy full SHA for 2fa515c
src/App.jsx
@@ -1,10 +1,18 @@
1
+const reactDescriptions = ['Fundamental', 'Crucial', 'Core'];
2
+
3
+function genRandomInt(max) {
4
+ return Math.floor(Math.random() * (max + 1));
5
+}
6
7
function Header() {
8
+ const description = reactDescriptions[genRandomInt(2)];
9
10
return (
11
<header>
12
<img src="src/assets/react-core-concepts.png" alt="Stylized atom" />
13
<h1>React Essentials</h1>
14
<p>
- Fundamental React concepts you will need for almost any app you are
15
+ {description} React concepts you will need for almost any app you are
16
going to build!
17
</p>
18
</header>
0 commit comments