0% completed
Alright, it’s time to roll up your sleeves and dive into some hands-on coding! In this section, you’ll get the chance to apply what you’ve learned about JSX and put your new skills to the test.
Follow these instructions to embed JavaScript expressions in JSX:
App.jsx
file found in the component/src
directory.<h1>
element that says "Hello, [userName]!"
, where [userName]
is dynamically inserted.App
component.Hello, John!
Note: You can choose any username of your choice
Follow these instructions to complete your challenge:
App.jsx
file found in the component/src
directory.num1
and assign it a value of 5.num2
and assign it a value of 10.num1
and num2
inside a <p>
element.sumElement
and render it inside the App
component.The sum of 5 and 10 is 15.
.....
.....
.....