πΈ Task: Create a simple React app that displays a greeting message using JSX.
πΉ Requirements: β
Use JSX to create a div with an h1 that says "Hello, React!".
β Add a paragraph with a fun fact about React.
β
Render it inside index.js (or App.js).
βοΈ Bonus: Change the greeting message based on the time of the day! βοΈπ
πΈ Task: Create a ProfileCard component that takes name and age as props and displays them.
πΉ Requirements: β
Create a functional component ProfileCard.
β
Pass name and age props from App.js.
β Display "Hello, my name is [name] and I am [age] years old."
βοΈ Bonus: Add a prop for hobby and display it creatively! π¨
πΈ Task: Explain (in your own words) how the Virtual DOM works in React.
πΉ Requirements: β Write a short paragraph explaining why Virtual DOM is better than directly modifying the real DOM.
β Use an analogy to make it interesting (e.g., shopping list vs. buying items one by one).
βοΈ Bonus: Imagine React didn't use a Virtual DOM. What problems might developers face? π€―
πΈ Task: Build a Neon Counter App that increases and decreases a number when buttons are clicked.
πΉ Requirements: β
Use useState to manage the count.
β Add a "+" button to increase the count.
β Add a "-" button to decrease the count.
β
Display the current count inside an h2.
βοΈ Bonus: Change the text color dynamically based on the count (e.g., red if negative, green if positive). π¨
πΈ Task: Build a Mini Blog Post component.
πΉ Requirements: β
Create a Post component with props for title, author, and content.
β
Use App.js to render multiple Post components with different data.
β Style it to look like a real blog post.
βοΈ Bonus: Add a date prop and display how many days ago the post was written! ποΈ
π Submission: Share your code snippets and explanations with the class! Letβs discuss and improve together. π₯
π¨βπ» Goal: After completing this, you should feel confident about Reactβs core concepts! πͺπ