Component naming rules
📖 Scenario: You are building a simple React app that shows a greeting message. To keep your code clear and easy to understand, you will practice naming your React components correctly.
🎯 Goal: Create a React functional component with the correct naming rules so it renders a greeting message.
📋 What You'll Learn
Create a React functional component with a name starting with a capital letter
Use the component name in JSX to render it
Return a simple greeting message inside a
<div> element💡 Why This Matters
🌍 Real World
In real React projects, naming components correctly helps keep code readable and prevents bugs.
💼 Career
Understanding component naming rules is essential for any React developer to write clean and maintainable code.
Progress0 / 4 steps