ReactJS Booklet
ReactJS Booklet
ReactJS Booklet
1) What is React?
a) Library b) Framework c) both a&b d) None
2) Why React
3) Who released React?
a) Facebook b) Google c) Microsoft d) None
4) What is current version of React
5) What is JSX?
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
38) implement the example to share data from Child Component to Parent Component
Ex.
Share the following data
Key1: “Hello”
Key2: 100
Key3: true
Prepared by Samba
REACTJS PRACTICE BOOKLET
39) write the basic example for click event with 0 parameters
40) write the basic example for double click with 0 parameters
Prepared by Samba
REACTJS PRACTICE BOOKLET
41) write the basic example for click event with two parameters (i.e. ExcelR &
ExcelR@123)
42) write the basic example for double click event with two parameters (i.e. ExcelR &
ExcelR@123)
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
46) consume below GET Requests and apply Conditional Rendering with Font Awesome
(Spinner)
URL1:
https://www.7timer.info/bin/astro.php?lon=113.2&lat=23.1&ac=0&unit=metric&ou
tput=json&tzshift=0
URL2:
https://www.w3schools.com/angular/customers.php
URL3:
https://reqres.in/api/unknown
URL4:
https://restcountries.com/v3.1/all
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
URL1:
https://reqres.in/api/users?page=2
URL2:
https://reqres.in/api/unknown/2
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
URL2: https://reqres.in/api/login
Request Data Response data
URL3: https://reqres.in/api/users
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
51) what are Single Page Applications? Write minimum 10 points and Draw the Diagram
1)
2)
3)
4)
5)
6)
7)
8)
9)
10)
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba
REACTJS PRACTICE BOOKLET
100) Write the validation for below application (mobile number validation)
Prepared by Samba
REACTJS PRACTICE BOOKLET
105) Write the few life cycle methods in class level components
106) Write the few points related to render () in class level components
a)
b)
c)
d)
e)
Prepared by Samba
REACTJS PRACTICE BOOKLET
107) Write the few points related to componentDidMount () in class level component
a)
b)
c)
d)
e)
108) What is componentWillReceiveProps () in class level components
109) Write the few points related to shouldComponentUpdate () in class level component
110) In initial stage which one will execute in class level components
a) Constructor b) state c) props d) All of the Above
111) In mounting Stage which hooks will execute in class level components?
112) In updation stage if props are changed which life cycle methods will execute?
113) In updation stage if state changed which life cycle methods will execute?
115) Draw the Diagram for life cycle methods in Class Level Component
Prepared by Samba
REACTJS PRACTICE BOOKLET
Prepared by Samba