templates-mo
Version:
Templates is a scaffolding framework that makes code generation simple, dynamic, and reusable. Generate files, parts of your app, or whole project structures—without the repetitive copy-pasting
19 lines (16 loc) • 495 B
Plain Text
{{{##def.componentName:
{{= tps.u.pascalCase(tps.name)}}
#}}}
{{{##def.propsInterfaceName:
{{#def.componentName}}Props
#}}}
{{{##def.export:
{{? tps.answers.export === "named" }}export {{?? tps.answers.inlineDefaultExport && tps.answers.functionStyle !== 'arrow' }}export default {{?}}
#}}}
{{{##def.componentImport:
{{{? tps.answers.export === "named" }}}
import { {{#def.componentName}} } from './{{= tps.name}}';
{{{??}}}
import {{#def.componentName}} from './{{= tps.name}}';
{{{?}}}
#}}}