<script>
    {% for component in components %}
        ReactDOM.{{ ssr_available|yesno:"hydrate,render" }}(
            React.createElement({{ component.name }},
                {% if component.json %}
                    {{ component.json|safe }}
                {% else %}
                    null
                {% endif %}),
            document.getElementById('{{ component.identifier }}')
        );
    {% endfor %}
</script>
