Flag of Ukraine
SymfonyCasts stands united with the people of Ukraine
Next Chapter

Challenge #1 of 1


Q: 

Let's imagine we have a Twig Component that helps us render charts:

namespace App\Twig\Components;

use Symfony\UX\TwigComponent\Attribute\AsTwigComponent;

#[AsTwigComponent]
class Chart
{
    // ...
}

How could we render this component in a Twig template?

userVoice