SVG framework function: buildIcon
This tutorial is part of Iconify SVG Framework functions tutorial.
This function is meant to be used when you generatecode.
The function has the following parameters:
- icon, . Icon data.
- customisations. Optional customizations object.
The function returns null if icon is not available.containing icon data,
Difference from renderIcon
Why are there two functions? For compatibility with other icon components and with old versions of SVG framework. Other components export only buildIcon(), SVG framework had from old version. Internally, uses same code as buildIcon(), so having both does not increase bundle size by much.