Check out example codes for "jinja2 base template". It will help you in understanding the concepts better.

Code Example 1

{% extends "layout.html" %}
{% block title %}Index{% endblock %}
{% block head %}
  {{ super() }}
  <style type="text/css">
    .important { color: #336699; }
  </style>
{% endblock %}
{% block content %}
  <h1>Index</h1>
  <p class="important">
    Welcome on my awesome homepage.
{% endblock %}

Learn ReactJs, React Native from akashmittal.com