Multiple elements in JSX

  <script src=""></script>
  <script src=""></script>
  <script src=""></script>

  <div id="app">

<script type="text/babel">
   var app = document.getElementById('app')
   var ele = <h1>Hello world</h1>
   var para = <p> This is going to be awesome </p>
   var parent = <div>{ele} {para}</div>
   ReactDOM.render(parent, app)

Please try without the curly braces to see what happens. So far we saw how to create react dom elements and how to finally render into an actual DOM element.

Next, you to need learn 3 things, then you're done learning Reactjs. The three things are:

  • Component
  • State
  • Lifecycle methods
What is a component?