Customize Templates

Use your own templates for components, actions.

You can customize templates used by Rekit React plugin.

  1. Create a folder named rekit-templates in your project

  2. Create a folder named rekit-react under rekit-templates

  3. 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?