Customize Templates
Use your own templates for components, actions.
You can customize templates used by Rekit React plugin.
Create a folder named
rekit-templates
in your projectCreate a folder named
rekit-react
underrekit-templates
Create templates files under
rekit-templates/rekit-react
with the same structure with https://github.com/rekit/rekit-core/tree/master/plugins/rekit-react/templates
To use a custom folder for templates, you can define templateDir
in rekit.json
of your project.
{
"appType": "rekit-react",
"templateDir": "./my-templates"
...
}
The templateDir
could be a relative path to the project root or absolute path.
Last updated
Was this helpful?