reflex/reflex/.templates/jinja/web/pages/index.js.jinja2
Thomas Brandého 94823f1317
fix hook order to use ref inside user hooks (#2906)
* fix hook order to use ref inside user hooks

* 2nd attempt to fix ref_hook order

* add missing definition

* remove print statements
2024-03-27 12:49:11 +01:00

24 lines
412 B
Django/Jinja

{% extends "web/pages/base_page.js.jinja2" %}
{% block declaration %}
{% for custom_code in custom_codes %}
{{custom_code}}
{% endfor %}
{% endblock %}
{% block export %}
export default function Component() {
{% for ref_hook in ref_hooks %}
{{ ref_hook }}
{% endfor %}
{% for hook in hooks %}
{{ hook }}
{% endfor %}
return (
{{utils.render(render, indent_width=0)}}
)
}
{% endblock %}