Skip to content

Commit

Permalink
document make:twig-component
Browse files Browse the repository at this point in the history
  • Loading branch information
seb-jean authored Jan 1, 2025
1 parent 507c89c commit bab2d3a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/LiveComponent/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,15 @@ fresh copy of our component. That HTML will replace the current HTML. In
other words, you just generated a new random number! That's cool, but
let's keep going because… things get cooler.

.. tip::

If you use the `Symfony MakerBundle`_, you can easily create a new component
with the ``make:twig-component`` command:

.. code-block:: terminal
$ php bin/console make:twig-component --live EditPost
.. tip::

Need to do some extra data initialization on your component? Create
Expand Down

0 comments on commit bab2d3a

Please sign in to comment.