diff -ru src/TwigComponent/doc/index.rst src/TwigComponent/doc/index.rst --- src/TwigComponent/doc/index.rst 2024-06-10 08:58:01.529822596 +0000 +++ src/TwigComponent/doc/index.rst 2024-06-10 08:58:02.158844820 +0000 @@ -340,9 +340,9 @@ Composition vs Inheritance ~~~~~~~~~~~~~~~~~~~~~~~~~~ -Symfony tend to follow the best pratice of the component architecture, so it's highly recommended to use Composition instead of Inheritance to reuse code betwen component (see: https://legacy.reactjs.org/docs/composition-vs-inheritance.html). +Symfony tend to follow the best practice of the component architecture, so it's highly recommended to use Composition instead of Inheritance to reuse code between component (see: https://legacy.reactjs.org/docs/composition-vs-inheritance.html). -Let's take an exemple. Some component don't know their children ahead of time. This is common for components like Alert or Dialog that represent generic “boxes”. We recommend you +Let's take an example. Some component don't know their children ahead of time. This is common for components like Alert or Dialog that represent generic “boxes”. We recommend you to use the block content to pass children directly into their output : .. code-block:: html+twig