React Exercises – 45 Days
0% Completed
0 of 45 days completed
React Exercises
SOOPRO Pathshala provides day-wise React exercises to help students practise React components, JSX, props, state, events, forms, arrays, and validation.
Practice Instructions:
Read each question carefully and complete the practical tasks in React. Mark a day complete after finishing its exercises. Your progress is saved in this browser.
React – Day 1
Day 1 of 45
SOOPRO Pathshala Exercises
Print Hello World using functional component in react.
Print your name,dob, gender and address using functional component in react.
Print sum of two numbers using functional component in react.
Print sum of three numbers using functional component in react.
Print square of given number using functional component in react.
Print cube of given number using functional component in react.
Print concatenation of your first name, last name using functional component in react.
Print sum of two given odd numbers using functional component in react.
Print sum of two given even numbers using functional component in react.
Print product and division of two given even numbers using functional component in react.
Mark Day 1 as Complete
Back to Day List ↑
React – Day 2
Day 2 of 45
SOOPRO Pathshala Exercises
Print about yourself using react.
Print your favorite food and color using react.
Print your hobby and ambition using react.
Print name of your best teacher using react.
Print name of your best friend using react.
Mark Day 2 as Complete
Back to Day List ↑
React – Day 3
Day 3 of 45
SOOPRO Pathshala Exercises
Print name of your fav actor using normal functional component.
Print your first name using ES6 functional component.
Print your fav subject name using ES6 functional component.
Print your first name using normal functional component.
Print your fav actress name using ES6 functional component.
Mark Day 3 as Complete
Back to Day List ↑
React – Day 4
Day 4 of 45
SOOPRO Pathshala Exercises
Print name of your fav actor using class component.
Print your first name using class component.
Print your fav subject name using class component.
Print your fav actress name using class component.
Mark Day 4 as Complete
Back to Day List ↑
React – Day 5
Day 5 of 45
SOOPRO Pathshala Exercises
Print sum of three numbers using expression inside functional component.
Print value of variable using expression inside functional component.
Print value of property using expression inside functional component.
Print product of three of three numbers using expression inside functional component.
Print short notes on jsx.
Mark Day 5 as Complete
Back to Day List ↑
React – Day 6
Day 6 of 45
SOOPRO Pathshala Exercises
Pass first name and last name using property inside class component.
Print value of variable using functional component.
Print division of two numbers using functional component.
Pass short notes of react using property under functional component.
Pass short notes of virtual DOM using property under functional component.
Mark Day 6 as Complete
Back to Day List ↑
React – Day 7
Day 7 of 45
SOOPRO Pathshala Exercises
Write a program to print Hello World on button using normal click inside functional component in react.
Write a program to print your name on button using arrow click inside functional component in react.
Write a program to release property data and print it.
Write a program to print your favorite place name on button click inside class component in react.
Write a program to print first name using state inside functional component.
Write a program to print name of your father using state inside class component.
Mark Day 7 as Complete
Back to Day List ↑
React – Day 8
Day 8 of 45
SOOPRO Pathshala Exercises
Print what is react on button click using functional component.
Print what is component on button click using functional component.
Print what is JSX on button click using fuctional component.
Print features of react on button click using functional component.
Print name of developer of react on button click using functional component.
Mark Day 8 as Complete
Back to Day List ↑
React – Day 9
Day 9 of 45
SOOPRO Pathshala Exercises
Write a program to print sum of two numbers on button click using state inside class component.
Write a program to print average of two numbers on button click using state inside class component.
Write a program to print difference of two numbers on button click using state inside class component.
Write a program to print division of two numbers on button click using state inside class component.
Mark Day 9 as Complete
Back to Day List ↑
React – Day 10
Day 10 of 45
SOOPRO Pathshala Exercises
Write a program to print maximum of three numbers on button click using state inside class component.
Write a program to print minimum of three numbers on button click using state inside class component.
Write a program to print sum of minimum and maximum of three numbers on button click using state inside class component.
Write a program to print product of two integer on button click using state inside class component.
Write a program to print your full name on button click using state inside class component.
Mark Day 10 as Complete
Back to Day List ↑
React – Day 11
Day 11 of 45
SOOPRO Pathshala Exercises
Write a program to print even and odd using conditional rendering and state.
Write a program to print negative and positive using conditional rendering and state.
Write a program to test ternary operator in react.
Write a program to print average of two integer on button click using state inside class component.
Write a program to print your mother's name on button click using state inside class component.
Mark Day 11 as Complete
Back to Day List ↑
React – Day 12
Day 12 of 45
SOOPRO Pathshala Exercises
Write a program to print square of maximum number among two number using state in react.
Write a program to print cube of minimum number among two number using state in react.
Write a program to print concatenation of first and last name using state in react.
Write a program to print sum and average of two number using state in react.
Write a program to print difference of square and cube of minimum among two number using react.
Mark Day 12 as Complete
Back to Day List ↑
React – Day 13
Day 13 of 45
SOOPRO Pathshala Exercises
Write a program to return integer list in react.
Write a program to return string list in react.
Write a program to add two numbers by user input.
Write a program to print square of any number by user input.
Write a program to return list of objects in react.
Mark Day 13 as Complete
Back to Day List ↑
React – Day 14
Day 14 of 45
SOOPRO Pathshala Exercises
Write a program to print maximum of two numbers by user input.
Write a program to print minimum of two numbers by user input.
Write a program to print square of any number by user input.
Write a program to print cube of any number by user input.
Write a program to print concatenation of first and last name by user input.
Mark Day 14 as Complete
Back to Day List ↑
React – Day 15
Day 15 of 45
SOOPRO Pathshala Exercises
Write a program to find even and odd of any number by user input.
Write a program to find positive and negative of any number by user input in react.
Write a program to print square of maximum among three numbers by user input in react.
Write a program to print average of three numbers by user input.
Write a program to print sum, multiply, divide and subtract of two numbers by user input.
Mark Day 15 as Complete
Back to Day List ↑
React – Day 16
Day 16 of 45
SOOPRO Pathshala Exercises
Write a program to print square of any number by user input in react.
Write to print cube of any number by user input in react.
Write a program to print area of rectangle by user input in react.
Write a program to print meter to cm by user input in react.
Write to program to print cm to meter by user input in react.
Mark Day 16 as Complete
Back to Day List ↑
React – Day 17
Day 17 of 45
SOOPRO Pathshala Exercises
Write a program to print area of circe,diameter of circle and circumference of circle by user input in react.
Write a program to print cube of minimum number among three numbers by user input.
Write a program to print table of any number by user input in react.
Mark Day 17 as Complete
Back to Day List ↑
React – Day 18
Day 18 of 45
SOOPRO Pathshala Exercises
Write a program to print factorial of minimum among three numbers by user input.
Write a program to print table of maximum number among three numbers by user input.
Write a program to print sum of min and max among four numbers by user input.
Write a program to print average of five numbers by user input.
Write a program to print sum and diff of average and total sum of three numbers by user input.
Mark Day 18 as Complete
Back to Day List ↑
React – Day 19
Day 19 of 45
SOOPRO Pathshala Exercises
Create arithmetic operation in react.
Mark Day 19 as Complete
Back to Day List ↑
React – Day 20
Day 20 of 45
SOOPRO Pathshala Exercises
Write a program to print diff of two numbers if number1 is greater than number2 otherwise print sum.taking input from user.
Write a program to print product of two number if both numbers are equal otherwise print division.taking input from user.
Write a program to print sum of each digit of any three digit number by user input.
Write a program to print square of diff of max and min of four numbers by user input.
Create simple login form in react.
Mark Day 20 as Complete
Back to Day List ↑
React – Day 21
Day 21 of 45
SOOPRO Pathshala Exercises
Write a program to display list of colors in which select your favorite color and print on console using radio button.
Write a program to display list of foods using checkbox, and try to print selected favorite food on alert box.
Write a program to print average of max and min of four numbers by user input.
Write a program to create sample login form must use radiobutton within it.
Mark Day 21 as Complete
Back to Day List ↑
React – Day 22
Day 22 of 45
SOOPRO Pathshala Exercises
Write a program to create login form in react, take two radio button Admin and User.On admin click it should display login with Admin and on user click, it should display login with user.
Write a program to print reverse of any number by user input in react.
Write a program to print diff area of rectangle and area of triangle.
Write a program to print even and odd of integer list on button click in react.
Write a program to print only positive numbers of integer list on button click in react.
Mark Day 22 as Complete
Back to Day List ↑
React – Day 23
Day 23 of 45
SOOPRO Pathshala Exercises
Write a program to print reverse of your first name by user input.
Write a program to print only vowels of your first name by user input.
Write a program to print only consonants of your first name by user input.
Write a program to print concatenantion of vowel and consonant of your first name by user input.
Write a program to print reverse of integerlist on button click.
Mark Day 23 as Complete
Back to Day List ↑
React – Day 24
Day 24 of 45
SOOPRO Pathshala Exercises
Write a program to reverse any number by user input in react.
Write to print product of even and odd number of any three digit number by user input.
Write a program to print difference of max odd digit and max even digit of any four digit number by user input.
Write a program to print your name in reverse order.
Mark Day 24 as Complete
Back to Day List ↑
React – Day 25
Day 25 of 45
SOOPRO Pathshala Exercises
Wap to print sum of max and second max of integer array on button click in react using class component.
Wap to print square of second maximum number of integer array on button click in react using class component.
Wap to print string array on button click in react.
Wap to print float array on button click in react.
Wap to print double array on button click in react.
Mark Day 25 as Complete
Back to Day List ↑
React – Day 26
Day 26 of 45
SOOPRO Pathshala Exercises
Store and print all prime numbers of integer list in primelist array and all not prime numbers of integer list in notprimelist array.
Store and print vowels of your first name in vowellist and consonants of your first name in consonants list.
Print integer list in ascending order.
Print string list in reverse order.
Print sum of float list on alert box.
Create simple details form and show result in alert box.
Mark Day 26 as Complete
Back to Day List ↑
React – Day 27
Day 27 of 45
SOOPRO Pathshala Exercises
Create simple login form using class component.
Reverse and print any string by user input using class component.
Reverse and print any three digit number by user input using class component.
Print sum of second max and max of integer array list using class component.
Print difference of third max and fourth max of integer array list using functional component.
Mark Day 27 as Complete
Back to Day List ↑
React – Day 28
Day 28 of 45
SOOPRO Pathshala Exercises
Add two numbers by user input using functional component.
Print square of any number by user inpur using functional component.
Print cube of any number by user input using functional component.
Print area of rectangle by user input using functional component.
Mark Day 28 as Complete
Back to Day List ↑
React – Day 29
Day 29 of 45
SOOPRO Pathshala Exercises
Create sample login form using functional component.
Calculate sum and multiply of three numbers by user input using functional component.and print it on alertbox or using expression.
Find factorial of any number by user input using functional component.and print it on alertbox or using expression.
Find average of three numbers by user input using functional component.and print it on alertbox or using expression.
Find simple interest by user input using fuctional component.and print it on alertbox or using expression.
Mark Day 29 as Complete
Back to Day List ↑
React – Day 30
Day 30 of 45
SOOPRO Pathshala Exercises
Create simple login form with userdashboard, admindashboard, logout using functional component.
Mark Day 30 as Complete
Back to Day List ↑
React – Day 31
Day 31 of 45
SOOPRO Pathshala Exercises
Create simple login form with userdashboard, admindashboard, logout using class component.
Mark Day 31 as Complete
Back to Day List ↑
React – Day 32
Day 32 of 45
SOOPRO Pathshala Exercises
Write a React program to calculate multiplication and division of two numbers using class component (input from the user).
Write a React program to compute the sum of the two given integers. If the sum is in the range 50..80 return 65 otherwise return 80 (input from user).
Write a React program to print Area of traingle input from user.
Create a function that takes voltage and current and print the calculated power (input from user)
Mark Day 32 as Complete
Back to Day List ↑
React – Day 33
Day 33 of 45
SOOPRO Pathshala Exercises
Print concatenation of first letter and last letter of your first name using functional component in react.
Print product of each digits of any four digits numbers input by user using functional component.
Print square of each digits of any three digits numbers input by user using functional component.
Store even numbers of array in even array and odd numbers of array in odd array from given array in react. print all arrays elements on console or alert box.
Mark Day 33 as Complete
Back to Day List ↑
React – Day 34
Day 34 of 45
SOOPRO Pathshala Exercises
Convert meter to cm by user input using functional component
Convert kilogram to gram by user input using functional component.
Convert liter to ml by user input using functional component.
Convert quintal to ton by user input using functional component.
Mark Day 34 as Complete
Back to Day List ↑
React – Day 35
Day 35 of 45
SOOPRO Pathshala Exercises
Wap to print simple interest by user input using functional component in react.
Wap to print area of traingle by user input using functional component in react.
Wap to print area of circle by user input using functional component in react.
Wap to print area of rectangle by user input using functional component in react.
Mark Day 35 as Complete
Back to Day List ↑
React – Day 36
Day 36 of 45
SOOPRO Pathshala Exercises
Perform validation on name and age field using functional component in react.
Mark Day 36 as Complete
Back to Day List ↑
React – Day 37
Day 37 of 45
SOOPRO Pathshala Exercises
Create a textbox that do not allow special symbol.
Create a textbox that do not allow white space.
Create a textbox that only allow numbers.
Create a textbox that allow only alphabets.
Mark Day 37 as Complete
Back to Day List ↑
React – Day 38
Day 38 of 45
SOOPRO Pathshala Exercises
on choice 1 print table of any number, on choice 2 check even and odd, on choice 3 check prime or not prime and on choice 4 print reverse of any two digits number. note : create this using class component in react.
Mark Day 38 as Complete
Back to Day List ↑
React – Day 39
Day 39 of 45
SOOPRO Pathshala Exercises
Create emi calculator using functional component.
Mark Day 39 as Complete
Back to Day List ↑
React – Day 40
Day 40 of 45
SOOPRO Pathshala Exercises
Displaying sum of max and min among four numbers by user input using functional component in react.
Displaying only vowels of your full name by user input using functional component in react.
Displaying only consonants of your full name by user input using functional component in react.
Check palindrome of any three digits number by user input in react using functional component.
Check prime or not prime between 5 to 50 using functional component on button click in react.
Mark Day 40 as Complete
Back to Day List ↑
React – Day 41
Day 41 of 45
SOOPRO Pathshala Exercises
Ramesh basic salary is input through the keyboard. his dearness allowance is 40% of basic salary, and house rent allowance is 20% of basic salary. write a program to calculate his gross salary.
Mark Day 41 as Complete
Back to Day List ↑
React – Day 42
Day 42 of 45
SOOPRO Pathshala Exercises
If the total selling price of 45 items and the total profit earned on them is input through the keyboard, write a program to find the cost price of one item.
Any year is input through the keyboard. write a program to determine whether the year is a leap year or not.
A five-digit number is entered through the keyboard write a program to obtain the reversed number and determine whether the original and reversed numbers are equal or not.
Mark Day 42 as Complete
Back to Day List ↑
React – Day 43
Day 43 of 45
SOOPRO Pathshala Exercises
Add 4 to all even numbers of array and 5 to all odd numbers of array and print it using functional component.
Write a program to sort array of elements in ascending order using functional component.
Write a program to sort array of elements in descending order using functional component.
Write a program to print fibonacci series using functional component.
Mark Day 43 as Complete
Back to Day List ↑
React – Day 44
Day 44 of 45
SOOPRO Pathshala Exercises
Create Form Validation using fuctional component
Mark Day 44 as Complete
Back to Day List ↑
React – Day 45
Day 45 of 45
SOOPRO Pathshala Exercises
Create Details form using functional component.
Mark Day 45 as Complete
Back to Day List ↑