React JS Quiz Questions and Answers

What is the correct syntax for referring to an external script called "xxx.js "?

Answer :
  • < script src= "xxx.js " >

What is the equivalent of the following React code in JSX? React.createElement('div', {style:'color:red'}, 'title= "block "')

Answer :
  • < div style='color:red' title='block' >< /div >

Which of the following is used to pass the data from parent to child?

Answer :
  • Props

What are the two ways that data gets handled in React?

Answer :
  • state & props

How many stages are there in React JS's life cycle?

Answer :
  • 3

What is the name of the ReactJS developer?

Answer :
  • Jordan Walke

Name the function used to change the state of React component.

Answer :
  • this.setState

What will happen if you render an input element with disabled = {false}?

Answer :
  • It will be rendered as enabled

Everything in React is______.

Answer :
  • component

What is a state in React? 

Answer :
  • Internal storage of the component