Private
Public Access
1
0

add react hello world

This commit is contained in:
2016-09-23 22:57:35 +02:00
parent 1e36c82ffa
commit 4883892730
15 changed files with 43728 additions and 25 deletions

View File

@@ -0,0 +1,19 @@
{% extends '::base.html.twig' %}
{% block body %}
<div id="example"></div>
<script type="text/babel">
ReactDOM.render(
<h1>Hello, world!</h1>,
document.getElementById('example')
);
</script>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script src="{{ asset('bundles/mineseeker/js/src/build/react.js') }}"></script>
<script src="{{ asset('bundles/mineseeker/js/src/build/react-dom.js') }}"></script>
<script src="https://unpkg.com/babel-core@5.8.38/browser.min.js"></script>
{% endblock %}