Creating first React app
📖 Scenario: You want to build a simple React app that shows a friendly greeting on the web page. This app will help you understand how React components work and how to display content.
🎯 Goal: Build a React functional component called Greeting that renders a <div> with the text Hello, welcome to React!
📋 What You'll Learn
Create a React functional component named
GreetingReturn a
<div> element containing the exact text Hello, welcome to React!Export the
Greeting component as defaultUse only functional components and React hooks if needed
💡 Why This Matters
🌍 Real World
React is widely used to build interactive web apps with reusable components.
💼 Career
Knowing how to create and render React components is essential for frontend developer roles.
Progress0 / 4 steps