Theme Page
Theme Pages are React components which are mounted at route level by the Theme rendering engine. These components supports adding static methods like ServerFetch and AuthGuard. All Theme pages must be returned from the bootstrapping function in index.jsx
file.
Types of Pages
The primary types of theme pages are:
Custom Template
Custom templates are React Components that you can use in your theme if none of the available system pages meets your requirements. These pages are mounted at path: /c/page-name. An instance of the FDK Store Client (fpi) is available in case the component needs to display any data in the UI.
Create a Custom Template
It is required to create two files in .jsx format, for example, profile.jsx
and index.jsx
in /theme/custom-templates. Then import the profile component inside index.jsx file.
This router method is only supported by a custom template.