The next step is to register SampleModule in module.js, the module's entry file. To demonstrate rendering, display "Sample Module" using a simple <div> element within the SampleModule component. This creates a basic screen setup for the module, which can be customized or expanded as needed.
Steps
Add the below code in the Module.js file which is already created.
After creating the module code we need to enable it in two places:
For Deployment
In app.js we import the SampleModule, initSampleComponents, and enable the Sample module.
Add the App.js file in the following path:
micro-ui/web/src/App.js
For Local development
In index.js, import the SampleModule, initSampleComponents, and enable the Sample module.
Create the index.js file under the following path:
micro-ui-internals/example/src/index.js