Rekit Docs
  • Getting Started
  • Overview
  • Application Types
  • Command Line Interface
  • Element
  • Project Explorer
  • Diagramming
  • Tabs Bar
  • Code Editor
  • Bottom Drawer
  • Move/Rename
  • Rekit Development
    • Create a Rekit Plugin
      • Application Plugin
    • Get Started
    • Extension Point
    • Provide Project Data
    • Define a New Type of Element
      • Manage Element
      • Core Dialog
      • Form in the Dialog
    • Customize Menus
    • Plugin Architecture
    • Plugin Development
    • Hooks
    • Form Builder
    • API reference
      • Overview
      • Extend layouts
  • Application Types
    • Rekit React
      • Overview
      • Element Types
      • Customize Templates
      • Redux Management
      • React Router
      • Styling
      • Build
      • Testing
    • Create React App
    • Rekit Plugin
    • VueJS
    • AngularJS
Powered by GitBook
On this page

Was this helpful?

  1. Application Types
  2. Rekit React

Customize Templates

Use your own templates for components, actions.

PreviousElement TypesNextRedux Management

Last updated 5 years ago

Was this helpful?

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

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.

https://github.com/rekit/rekit-core/tree/master/plugins/rekit-react/templates