"name" property in custom template #118
Labels
documentation
Improvements or additions to documentation
enhancement
New feature or request
p3-enhancement
Enhancement under consideration
Milestone
Description
Introduce
name
property incustomTemplate
to even enhances thecustomTemplate
feature where the user need to have separate component TemplateName and the only purpose of the TemplateName component is to provide templates which takes up space.So the name property provides the user with two option dynamic and user defined name.
dynamic
- this takes the component name from the template path provided in config and replaces it with the name provided while generation.For example:
Custom Name - this can be used when your project doesn't follow the practice of naming the component file the same as component function. So the component name provided for name property will be replaced with the component name provided in the generation.
For example:
Here the
HeroAction.tsx
file will have component function namedHero
, so component nameHero
will be replaced by the component name provided while generation.Suggested solution
This can be achieved by introducing
name
property incustomTemplate
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: