ReactJs QB - Assigned To Aniketh-1
ReactJs QB - Assigned To Aniketh-1
83 Why ReactJS is used? React is used to handle the view part of Mobile appl
84 When ReactJS Released? March,2013
85 What is current stable version of ReactJS? version 15.5
When current stable version of ReactJS is
86 developed? April 7,2017
87 Basic difference between pros and state? All of these
88 What is the life cycle of componemts? Initialization
108 What are the form events we used in ReacrJs? All of these
109 What are Mouse events used in ReactJs? All of these
110 What are Touch Events used in React Js? All of these
135 What are the Pointer Events supported in React? All of these
136 Is component names start with capital letter? 1
Are custom DOM attributes supported in React
137 v16? Yes
Can you force a component to re-render without
138 calling setState? 1
Is it possible to use React without rendering
139 HTML? Returning undefined won't work.
140 Why you can't update props in React? both a& b
What are the possible ways of updating objects in
141 state? All of these
What are the approaches to include polyfills in
142 your create-react-app? All of these
143 How to update a component every second? setInterval()
Is React in Inline Styles apply vendor
144 prefixes automatically 0
146 What are the popular packages for animation? both a &b
In which component lifecycle methods should I
147 make an AJAX call? componentDidmount
What are the Router components of React Router
148 v4? All of these
How do you programmatically navigate using
149 React Router v4? Both a & b
150 How to implement default or NotFound page? both a& b
151 How to get history on React Router v4? history
152 What is Intl in React? Internationalization
153 What are the main features of React Intl? All of these
154 How to access current locale with React Intl? injectIntl()
155 What is Jest? All of these
156 What are the advantages of Jest over Jasmine? All of these
157 What are the core principles of Redux? All of these
What are the downsides of Redux compared to
158 Flux? All of these
159 Can I dispatch an action in reducer? 1
160 What is MVW? Model-View-Whatever
161 What are the drawbacks of MVW pattern? All of these
Are there any similarities between Redux and
162 RxJS? 0
163 How to dispatch an action on load? componentDidMount()
164 How to use connect() from React Redux? both a &b
165 How to reset state in Redux? combineReducers()
166 How to make AJAX request in Redux? redux-thunk
Should I keep all component's state in Redux
167 store? 1
Are Component and Container same in React
168 redux? 0
Components , Containers, Actions,
169 How to structure Redux top level directories? Reducers, Store
170 Functions used in redux-saga? both a&b
171 Are redux-saga & redux-thunk same? 0
172 What is Redux DevTools? both a & b
173 What are the features of Redux DevTools? All of these
174 What is Redux Form? All of these
175 What are the main features of Redux Form? All of these
176 Is relay and redux same? 0
177 Is Flow and propsTypes same? 0
178 React and Angular are same? 0
180 What are the main features of Reselect library? All of these
Does the statics object work with ES6 classes in
181 React? No
182 Can Redux only be used with React? 0
183 Can I import an SVG file as react component? 1
184 Should I ever use react internal state? 1
Can you describe about componentDidCatch error has been thrown by a descendant
185 lifecycle method signature? component.
In which scenarios error boundaries do not catch
186 errors? All of these
What are the possible return types of render
187 method? All of these
188 What is the main purpose of constructor? both a & b
Is it mandatory to define constructor for React
189 component? No
Prevents certain actions from being
190 What is the benefit of strict mode? taken and throws more exceptions
191 Is it React support all HTML attributes? 1
Is it good to use arrow functions in render
192 methods? Yes, You can use
193 Is it keys should be globally unique? No
Yes, you can use web components in a
194 Can I use web components in react application? react application.
Is it ref argument available for all functions or
195 class components? No
Yes, JSX is not mandatory for using
196 Is it possible to use react without JSX? React.
197 When do you need to use refs? All of these
Is it prop must be named as render for render
198 props? 0
Can you choose top website or application using
199 react as front end framework? All of these
Do I need to rewrite all my class components
200 with hooks? No
To achieve dynamic UI updates. Which of the
201 following needs to be updated ? state
Which of the following API is necessary for
202 React.js component? render
Which of the following represented the Pre and
203 post life cycle methods of components ? Will,Did
Which functions allow to bind the context of the
204 components? vigaro sign
283 Why ReactJS is used? React is used to handle the view part of Mobile applicati
284 When ReactJS Released? March,2013
285 What is current stable version of ReactJS? version 15.5
When current stable version of ReactJS is
286 developed? April 7,2017
308 What are the form events we used in ReacrJs? All of these
309 What are Mouse events used in ReactJs? All of these
310 What are Touch Events used in React Js? All of these
How To Apply Validation On Props In
311 Reactjs? React.PropTypes.string
312 What Are The Benefits Of Redux? Organization
Where Can Redux Be Used instead of
313 ReactJs? AngularJS
314 What Are Redux Workflow Features? Reset
Is it good to
333 use setState() in componentWillMount() method? 0
334 SSR stands for? Server Side Rendering
335 What are the Pointer Events supported in React? All of these
336 Is component names start with capital letter? 1
Are custom DOM attributes supported in React
337 v16? Yes
Can you force a component to re-render without
338 calling setState? 1
Is it possible to use React without rendering
339 HTML? Returning undefined won't work.
340 Why you can't update props in React? both a& b
346 What are the popular packages for animation? both a &b
In which component lifecycle methods should I
347 make an AJAX call? componentDidmount
What are the Router components of React Router
348 v4? All of these
How do you programmatically navigate using
349 React Router v4? Both a & b
350 How to implement default or NotFound page? both a& b
351 How to get history on React Router v4? history
352 What is Intl in React? Internationalization
353 What are the main features of React Intl? All of these
354 How to access current locale with React Intl? injectIntl()
356 What are the advantages of Jest over Jasmine? All of these
375 What are the main features of Redux Form? All of these
376 Is relay and redux same? 0
377 Is Flow and propsTypes same? 0
378 React and Angular are same? 0
React has only the View layer
While Angular has complete
What is the main difference between react and MVC functionality
379 Angular?
380 What are the main features of Reselect library? All of these
Does the statics object work with ES6 classes in
381 React? No
382 Can Redux only be used with React? 0
: :: .
1 0 1
C V M
1 0 1
1 0 1
Jordan Walke Jordan Mike Jordan Lee
1 0 1
one way data flow two way data flow three way data flow
Action->Dispatcher->Store->ViewDispatcher->Action->Store->View>Store->Dispatcher->View
1 0 1
1 0 1
1 0 1
1 0 1
components elements User interface
iles all the Javascript down into one file s react local development server both a& b
Model Controller Middleware
Module Package Component
1 0 1
1 0 1
1 0 1
validation Determine Properties type for states
1 0 1
1 0 1
1 0 1
1 0 1
1 0 1
double-quotes
React is a frontend library curly-braces{} []
developed
d for building complex by Facebook
and interactive engineers
User Interfaces in web & mobile
React
applications.
is an open-source JavaScript library
w part of Mobile application and Web application.s used create only User interfaces it is a library of javascript
March,2013 April,2013 Feb, 2013
version 15.6 version 16.0 version 15.5
ugh it, developers need not worry about the bugs.y be trusted for quality outcomes.trusted for complex tasks.
th DOM manipulation is very expensive. memory wastage in Virtual Domas compared to Real DOM.
ful routing library built on top of React ens and flows to the application. t Router has a simple API.
s the state, dispatch actions and register listeners. is very difficult and predictable. old the application’s state
action, and then it returns a new state.hanges in response to an ACTION.d then returns new values.
JavaScript Xtension JavaScript XML JavaScript Xtended
1 0 1
1 0 1
1 0 1
Dan Abramov and Andrew Clark Jordan Mike Jordan Lee
1 0 1
1 0 1
1 0 1
1 0 1
one way data flow Components both a&b
1 2 3
A permanent storage Internal storage of component Both of the above
Be changed inside the component hanged in side other componentchanged in the component
Properties to the component Event handler to component Both of the above
Synchronous in nature
made synchronous when required Asynchronous in nature
Component is created for the first timeate of the component is updated Both of above
Component is updated ent is created for the first time Both of above
Unique among the siblings only Unique in the DOM not requires to be unique
Source of truth is DOM urce of truth is component statee of truth can be anything
Assigning a value to ref attribute in JSX Calling React.createRef method Both of the above
1 0 1
Set State rendering Server Side Rendering Server State rendering
Yes No 1
1 0 1
1 0 1
1 0 1
test asynchronous code synchronously.cesses so that they finish sooner.xecute in your source code
Single source of truth State is read-only made with pure functions
to have to carefully pick your packages e is no nice Flow integration yet learn to avoid mutations
1 0 1
Model-View-Whatsmore Model-View-Whatsoever Model-View-Whatever
he DOM manipulation is very expensive Lot of data changes happens undo (travel back in time)
1 0 1
componentDidMount() componentWillMount() render()
Use mapStateToProps() e above props to your container both a &b
combineReducers() rootReducer() USER_LOGOUT
redux-thunk fetch API No one
1 0 1
1 0 1
React has only the View layer While Angular has complete MVC functionality
s a library While Angular is a Framework gular, data flows both way
ted unless one of its arguments changes. used as input to other selectors.he minimal possible state.
No yes 1
Yes No 1
1 0 1
Yes No 1
vigaro sign : ::
1 0 1
Mounting,Updating,Unmo
Mounting , Updating Mounting,Unmounting unting
V C M
1 0 1
1 0 1
Jordan Mike Jordan Lee Jordan Walke
getInitialState,
getInitialState , ComponentDidMount componentWillMount componentWillMount
1 0 1
one way data flow two way data flow no one
1 0 1
1 0 1
Compression Modification Optimization
1 0 1
1 0 1
components elements User interface
1 0 1
1 0 1
1 0 1
Determine Properties type for states validation
1 0 1
1 0 1
1 0 1
1 0 1
1 0 1
curly-braces{} double-quotes []
React is a frontend library
developed by Facebook engineers ReactJs is used for building complexReact
and interactive
is an open-source
User Interfaces
JavaScript
in web
library
&m
While performing any task through it, It is very fast technology and ReactJS is a technology
developers need not worry about the can simply be trusted for quality that can be trusted for
bugs. outcomes. complex tasks.
In both DOM manipulation is very Virtual DOM updates faster as Too much memory
expensive. compared to Real DOM. wastage in Virtual Dom
Its library is very large and takes time Coding gets complex as it uses React is just a library, not
to understand inline templating and JSX a full-blown framework
High Order Component Higher order component Huge order component
Redux has only one store as
compared to flux No concept of dispatcher State is immutable
1 2 3
Internal storage of component A permanent storage Both of the above
Not be changed in the Be changed in side other
Be changed inside the component component component
Properties to the component Event handler to component Both of the above
Are asynchronous but
can be made
synchronous when
Synchronous in nature Asynchronous in nature required
Does nothing , you have
to call render method to
render the component
re-renders the component be created again from scratch again
State of the component is
Component is created for the first time updated Both of above
Component is created for the first time Component is updated Both of above
Do not requires to be
Unique in the DOM Unique among the siblings only unique
Source of truth can be
Source of truth is component state Source of truth is DOM anything
Assigning a value to ref attribute in JSX Calling React.createRef method Both of the above
1 0 1
Server Side Rendering Set State rendering Server State rendering
No Yes 1
1 0 1
Returning undefined won'
1 0 t work.
top-down it is immutable both a& b
Calling setState() with an
Using Object.assign() to create a copy object to merge with
of the object: Calling setState() with a function state
Manual import from core-
Using Polyfill service No one js
setInterval() componentDidmount componentWillmount
1 0 1
1 0 1
1 0 1
componentDidMount() componentWillMount() render()
Connect the above props to
Use mapStateToProps() your container both a &b
combineReducers() rootReducer() USER_LOGOUT
redux-thunk fetch API No one
0 1 1
1 0 1
Components Components ,
Components ,Actions,Containers Reducers,Action,Containers, Containers, Actions,
Reducers, Store Store Reducers, Store
put() call() both a&b
1 0 1
It is environment with hot reloading, It is a live-editing time travel
action replay, and customizable UI environment for Redux both a & b
0 1 1
1 0 1
error has been
thrown by a
descendant
Yes No component.
Asynchronous code
using setTimeout or
requestAnimationFrame callbac During Server side
Inside Event handlers ks rendering
1 0 yes
Warning about
Detecting unexpected side deprecated
effects. findDOMNode usage
1 0 1
1 0 Yes
Yes, JSX is not mandatory for using
React. No, it is mandatory 1
Managing focus,
Triggering imperative
animations.
media playback. text selection
1 0 1
1 0 No
Option 4 Difficulty Level Time(in seconds) Shuffled By
rendercomponent Easy 30
rendercomponent Medium 65
Will,Did Hard 90
0 Medium 65
No one Easy 30
getDefaultProps Medium 65
def Hard 90
setnumber Easy 30
Google Medium 65
view Hard 90
0 Easy 30
0 Medium 65
Tim Lee Hard 90
getInitialState Easy 30
0 Medium 65
no one Hard 90
render Easy 30
Variable Medium 65
No one Hard 90
Props Easy 30
None of these Medium 65
0 Hard 90
Wrapping Hard 90
None of these Easy 30
0 Medium 65
refer() Hard 90
Compilation Easy 30
0 Medium 65
Encryption Hard 90
0 Easy 30
0 Easy 30
objects Medium 65
ref Hard 90
Design Platform Easy 30
None of the options Medium 65
state() Hard 90
this.state Medium 65
None of these Hard 90
None Easy 30
None Easy 30
Router Medium 65
Class Hard 90
e external/components/ Easy 30
3500 Medium 65
props Hard 90
setState Easy 30
0 Medium 65
0 Easy 30
0 Medium 65
0 Hard 90
No one Easy 30
0 Medium 65
No one Hard 90
No one Easy 30
0 Medium 65
0 Hard 90
0 Easy 30
0 Medium 65
no one Easy 30
no one Medium 65
No one Hard 90
All of these Easy 30
No one Medium 65
No one Hard 90
version 16.8 Easy 30
no one Hard 90
4 Hard 90
None of the above Medium 65
None of these Easy 30
None of these Hard 90
0 Hard 90
None of these Medium 65
0 Medium 65
0 Easy 30
No one Hard 90
No one Medium 65
0 Hard 90
0 Medium 65
No one Easy 30
No one Hard 90
0 Hard 90
mapDispatchtoprops Hard 90
None of these Medium 65
No one Easy 30
post API Hard 90
0 Medium 65
0 Easy 30
No one Hard 90
both a&b Medium 65
0 Easy 30
None Hard 90
All of these Medium 65
All of these Easy 30
All of these Hard 90
0 Medium 65
0 Easy 30
0 Hard 90
No one Medium 65
No one Hard 90
0 Hard 90
0 Medium 65
0 Hard 90
1 Medium 65
0 Easy 30
0 Easy 30
0 Hard 90
0 Medium 65
0 Easy 30
0 Hard 90
All of these Medium 65
0 Easy 30
0 Hard 90
state Easy 30
rendercomponent Medium 65
Before,After Hard 90
. Easy 30
0 Medium 65
No one Easy 30
getWillState Medium 65
def Hard 90
setnumber Easy 30
Google Medium 65
view Hard 90
0 Easy 30
0 Medium 65
Tim Lee Hard 90
getInitialState Easy 30
0 Medium 65
Hard 90
render Easy 30
Variable Medium 65
No one Hard 90
Props Easy 30
Abstraction Hard 90
0 Medium 65
refer() Hard 90
Build Easy 30
0 Medium 65
Encryption Hard 90
0 Easy 30
0 Easy 30
objects Medium 65
ref Hard 90
Design Platform Easy 30
None of the options Medium 65
state() Hard 90
this.state Medium 65
None Easy 30
None Easy 30
Router Medium 65
Class Hard 90
Inside
external/components/ Easy 30
A compiler Easy 30
Medium 65
Hard 90
setState Easy 30
0 Medium 65
Hard 90
0 Easy 30
0 Medium 65
0 Hard 90
No one Easy 30
0 Medium 65
No one Hard 90
Easy 30
0 Medium 65
0 Hard 90
0 Easy 30
0 Medium 65
Hard 90
Easy 30
Medium 65
No one Hard 90
All of these Easy 30
No one Medium 65
No one Hard 90
version 16.8 Easy 30
no one Hard 90
4 Easy 30
None of the above Medium 65
0 Easy 30
None of these Medium 65
0 Medium 65
0 Hard 90
No one Easy 30
No one Medium 65
0 Hard 90
0 Easy 30
No one Medium 65
No one Hard 90
0 Hard 90
mapDispatchtoprops Easy 30
0 Medium 65
0 Hard 90
No one Easy 30
fetch() Medium 65
0 Hard 90
None Easy 30
No one Medium 65
No one Easy 30
0 Medium 65
0 Hard 90
0 Easy 30
Medium 65
No one Medium 65
No Hard 90
Identifying components
with unsafe lifecycle
methods. Easy 30
0 Medium 65
0 Hard 90
No Easy 30
0 Medium 65
No Hard 90
0 Easy 30
0 Hard 90
Yes Medium 65
Verified By