Academic Year 2024-25
Course - IT22 Full Stack Development
React JS – Hands on Assignment -1
1. Create a Simple React App
Display “Hello, World!” inside an <h1> tag.
2. Write JSX to Display a Paragraph
Inside a <div>, display a <p> tag with your name.
3. Create a JSX expression that renders the current date and time dynamically.
4. Create a simple functional component that returns a heading <h2>
5. Write a program to demonstration of nested functional component
6. Create a parent component that passes a name prop to a child component and displays it.
7. Create an array of students which includes roll number, name and age pass it as a props to
functional component and display all information.
8. Pass an array of colors (as props) to a child component and render them as <li> items.
9. Build a counter with two buttons (+ and -) to increment/decrement a state variable.
10. Create an input field that logs its value to the console on every keystroke (use onChange).
11. Create a button that changes its background color when clicked (use onClick and state).
12. Build a form with name and email fields that alerts the submitted values (use onSubmit).