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

JSX transformer is a must to work with ReactJS.

Answer :
  • False

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

Regarding JSX attributes, which of the following statements is true?

Answer :
  • Attribute names can be used in CAML case

JSX is an acronym for______.

Answer :
  • JavaScript eXtension

How many elements does a React component return?

Answer :
  • 1 Element

What is the name of the ReactJS developer?

Answer :
  • Jordan Walke