NEW
Font size
WorksheetsReact Quiz
Total questions: 10
Worksheet time: 2mins
What is the best definition of React.js
Server-side Framework
A library for building interaction interfaces
A programming languge
None of these
Which of the following command is used to create React.js App ?
npx create-react-app appName
npm install appName
install -i create-react-app
npm -i create-react-app
What is the default port number in which react application runs
5000
8090
3000
444
How many components can be returned in the return method of React ?
2
3
0
1
Which of the following are the ways to handle data in React.js?
State and props
Services and components
State and Services
Components and state
How can we pass data from obne component to another in React.js?
State
Props
Render with arguments
Cannot pass
Which of the following function is true about changing the state in React.js?
state=("value")
state.set("value")
setState("value")
All of the above
Which of the following is used to render components in webpages ?
DOM_render()
render()
ReactDOM_render()
transfer()
How to import Modules in React.js?
import Module from 'path'
from "path" import Module
<import> Module
None
How can we add JavaScript inside HTML in React.js?
inside ()
Inside {}
Inside[]
Inside " "
