What will be the output of the below JSX

<script type="text/babel">
ReactDOM.render(
<h1>Message from RNA Team - "Welcome to ReactJS World"</h1>
<b>Bold this text</b>,
document.getElementById('mainContainer')
);
</script>

 Posted by Rajnilari2015 on 12/6/2015 | Category: JavaScript Interview questions | Views: 2462 | Points: 40
Select from following answers:
  1. Display in bold the text : Message from RNA Team - "Welcome to ReactJS World"
  2. Contents of H1 and B will appear
  3. Error: Adjacent JSX elements must be wrapped in an enclosing tag
  4. I don't know
  5. All Above

Show Correct Answer


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response