Skip to content

Commit

Permalink
[React] add note about required default export in Symfony UX React
Browse files Browse the repository at this point in the history
  • Loading branch information
teklakct committed Jul 24, 2024
1 parent eb48700 commit 53f7119
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/React/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ For example:
return <div>Hello {props.fullName}</div>;
}
.. note::

Ensure your module exports the controller as the ``export default``. The default export is used when resolving components.

.. code-block:: html+twig

{# templates/home.html.twig #}
Expand Down

0 comments on commit 53f7119

Please sign in to comment.