Custom components

Sometimes, Mafs simply won't have the component you need. When that happens, Mafs provides APIs to drop one level deeper, letting you render any SVG elements you want. All it takes is some work to ensure things render correctly.

In learning this, we'll make a PizzaSlice component that behaves just like a built-in Mafs component.