Note
While validating React component properties. a custom validator function is used for validating the tweet property. Which of the following parameters are passed to this function?
i) properties
ii) propertyName
iii) media
iv) componentName
All options i), ii), iii) and iv).
Only options i), ii) and iii).
Only options ii), iii) and iv).
Only options i), ii) and iv).
Which of the following is the correct syntax of React function that will enforce that names are written with all uppercase letters?
handleChange(event)[
this.setState({valuezeventtarget.value.toUpperCase0));
}
event.handleChange(
this.setState([value= eventtarget.value.toUpperCase0]);
handleChange.event[
this.setState([value:target.value.toUpperCase0));
handleChange[
event.set$tate([value: this.target.value.toUpperCaseOI);
Which of the following is the correct syntax for creating a ReactElement of type h1 having the properties object and a ReactText as its only child?
[
render: function 0{
return React.createElement([ className: 'header'. 'hl'}, 'React
Component‘);
return React.createElement('h1'. [ className: ‘header' ], ‘React
I
{
renderfunction 0[
return React.createElement('h1', className: 'header'. "React
Component“);
return React.createElement(React
Component= 'h1', [ className: 'header‘ },
I;
Which of the following options is the correct syntax for creating a new folder named Dispatcher in a project's ”/snapterest/ source/exampleDispatch directory?
var Dispatcher = require('fiux‘).Dispatchen
module.exports = new Dispatchero;
var Dispatcher = require(fiuxDispatcher);
module.exports = new DispatcherO;
var Dispatcher = require Dispatcher('flux').;
module exports = new Dispatcher();
var Dispatcher = require new fiux.Dispatcher;
Which of the following commands are used for installing React and React DOM? (Consider reactApp as the root folder.)
C:\Users\username\Desktop\reactApp>npm install react -save
C:\Users\username\Desktop\reactApp>npm install react dom -save
C:\Users\username\Desktop\reactApp>npm install react
C:\Users\username\Desktop\reactApp>npm install react dom --save
C:\Users\username\Desktop\reactApp>npm install react --save
C:\Users\username\Desktop\reactApp>npm install react.dom --save
C:\Users\username\Desktop\reactApp>npm install react-dom --save
Which of the given render methods is correctly written?
render(){
return [
<li key="List1">List1</Ii>,
<|i key="List2">List 2</|i>,
<li key="List3">List 3</li>,
];
1
return (<div>
[this.renderThis()]
[this.renderThat0]
</div>);
<li key="List1">List1<lli>,
<li key="List2">List 2</li>,
<|i key="List3">List 3<l|i>.
render0{
[this.renderThisO}
[this.renderThat()}
<ldiv>);
}.
All of the above.
Which of the following statements are correct about Flux?
i) The application parts are coupled.
ii) Maintenance of the application is easy.
Only option i).
Only option ii).
Both options i) and ii).
Neither option i) nor in.
React.js Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it