Updated react example

This commit is contained in:
Maxim Stewart 2020-10-31 17:28:37 -05:00
parent 1930763d38
commit 6ee872469f
2 changed files with 23 additions and 1 deletions

View File

@ -82,8 +82,10 @@
<script src="{{ url_for('static', filename='js/libs/bootstrap/bootstrap-datepicker.min.js')}}"></script>
<!-- For React -->
<script src="{{ url_for('static', filename='js/libs/react.production.min-17-0-1.js')}}"></script>
<script src="{{ url_for('static', filename='js/libs/react/react.production.min-17-0-1.js')}}"></script>
<script src="{{ url_for('static', filename='js/libs/react/react-dom.production.min-17-0-1.js')}}"></script>
<!-- Application Imports -->
{% block body_scripts_additional %}
{% endblock body_scripts_additional%}
{% endblock %}

View File

@ -0,0 +1,20 @@
{% extends "layout.html" %}
{% block body_header_additional %}
{% endblock body_header_additional %}
{% block body_content %}
<div id="react-container">
</div>
{% endblock body_content %}
{% block body_footer_additional %}
{% endblock body_footer_additional %}
{% block body_scripts_additional %}
<script src="{{ url_for('static', filename='js/post-ajax.js')}}"></script>
<script src="{{ url_for('static', filename='js/ajax.js')}}"></script>
<script src="{{ url_for('static', filename='js/events.js')}}"></script>
<script src="{{ url_for('static', filename='js/react-ui-logic.js')}}"></script>
{% endblock body_scripts_additional %}