Skip to content

Commit 53f7119

Browse files
committed
[React] add note about required default export in Symfony UX React
1 parent eb48700 commit 53f7119

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
@@ -76,6 +76,10 @@ For example:
7676
return <div>Hello {props.fullName}</div>;
7777
}
7878
79+
.. note::
80+
81+
Ensure your module exports the controller as the ``export default``. The default export is used when resolving components.
82+
7983
.. code-block:: html+twig
8084

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

0 commit comments

Comments
 (0)