React Questions

0 votes, 0 avg
110

React Questions

1 / 15

1. Consider the following code from React Router. What do you call :id in the path prop? > Route path=”/:id” / >

2 / 15

2. What is the output of the below code ?

var Geeks=(props)=>
{
 return(
 

DSA Course 1
 

 

DSA Course 2
 

 );
}
ReactDOM.render( < DSA Course/ > ,mountNode)

3 / 15

3. Which of the following function is used to change the state of the React.js component?

4 / 15

4. How many stages are there in React js life cycle

5 / 15

5. Babel is a __________?

6 / 15

6. Which of the following command is used to Install create-react-app?

7 / 15

7. React separates the user interface into components. How are components combinded to create a user interface?

8 / 15

8. How do you fix the syntax error that results from running this code?

const person =(firstName, lastName) =>
{
  first: firstName,
  last: lastName
}
console.log(person("Jill", "Wilson"))

9 / 15

9. What is the declarative way to render a dynamic list of components based on values in an array?

10 / 15

10. Which is not true about Virtual DOM in React JS?

11 / 15

11.  To create a constant in JavaScript, which keyword do you use?

12 / 15

12. Arbitrary inputs of components in React are called

13 / 15

13. What happens when the following render() method executes?

render(){
   let langs = ["PHP","ES6","JAVA"]
     return ( < div>
       {langs.map(it =>  < p > {it}  < /p > )}
      < /div > )
 }

14 / 15

14. React Js is ______based architecture approach

15 / 15

15. What is a react.js in MVC?

Your score is

The average score is 43%

0%