Which of the following is not an implementation of Flux?
Fluxit
Modularity in Redux is achieved through ________________
Reducers
In Redux, state variables and objects are never mutated. Instead, new ones are
produced.
True
The function random() produces a new random number between 0 and 1 every time you
run it. Is this a pure function?
False
Data flow in Redux is:
Uni-Directional
Which of the following is not true about Pure Functions
Can make API calls
In Redux Action Types have to be defined as Strings
True
Which of the following Action Objects are syntactically correct?
{ type: 'ADD_TODO', text }
Actions in Redux
Send data to Store
Which of the following functions can be used to dispatch actions in Redux?
All the options mentioned
Action Creators in Redux
All the options mentioned
What is the input for the dispatch function?
Action Object
Following function is a __________?
(previousState, action) => newState
Reducer
createStore is a function to be imported from ____________
Redux
Which of the following statements about Reducers is not true?
Can make API calls
combineReducers aggregates the output of reducers into a single object representing
application state.
True
Which of the following can be done in a Reducer?
Perform Calculations
Presentational components of React are connected to the container components of
React.
True
State Changes in Redux are stored in such a way that _____________
State changes are stored as new state with references to old state for unchanged
sections of the state tree.
Which of the following can be done inside a reducer?
Call a pure function
What is the helper function that Redux provides for making root reducer?
CombineReducer()
Redux bindings to React are to be imported from ____________.
ReactRedux
How to access Redux state from store?
getState()
One can deregister listeners on store by calling function returned by
_______________.
subscribe(listner)
Which of the following statements about Redux is not true?
Changes are initiated through Actions -- Wrong
Which of the following is not api of redux library
connect()
React bindings for Redux are enabled by default.
False
Which of the following is a signature of a reducer function?
function name(state, action)
How can initial state be passed to store the, using the createStore function?
Pass it as second aurgument
The function double is defined as below. Is this a pure function?
const double = x => x * 2;
True
How is the context of store passed to React components?
Using Provider
Redux applications follow _____________________
Functional Programming
What are middleware used for?
To create new dispatch function
How to register for listeners on store?
subscribe(listener)
Redux can be used with React, AngularJS, BackboneJS and many others.
True
Which components take care of connecting to Redux store for data fetching and state
updates?
Container
How do you bind action creators with dispatch function?
bindActionCreators