mplate
};
</pre>

<h3>React templates</h3>

You can use a React component for the templates by rendering them to the templates' element directly:

<pre class="prettyprint lang-js">
  template: function (item, element, data) {
    return ReactDOM.render(&lt;b&gt;{item.content}&lt;/b&gt;, element);
  },
</pre>


  <h3>Multiple templates</h3>

  In order to support multiple templates, the template handler can be extended to switch between different templates, depending on a specific item property:

<pre class=