Skip to content

Commit 9849bce

Browse files
committed
[React] add note about required default export in Symfony UX React
1 parent 0e805b9 commit 9849bce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/React/doc/index.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ For example:
7777
return <div>Hello {props.fullName}</div>;
7878
}
7979
80+
.. note::
81+
82+
Ensure your module exports the controller as the ``export default``. The default export is used when resolving components.
83+
8084
.. code-block:: html+twig
8185

8286
{# templates/home.html.twig #}

0 commit comments

Comments
 (0)