Modularized Imports
Is there a way to read variable {{member}} in the following image? I want to pass modified {{member}} into there.
3 Replies
The issue is that {{member}} is, for example, "ArrowLeft" but react-feather doesnt export it as react-feather/dist/icons/ArrowLeft, it exports it as react-feather/dist/icons/arrow-left. So i want to slugify it first
You can't customize it too much, but
{{ kebabCase member }}
should do the trickthanks, it did help