Hi @storyteller , do you have any suggest for me, i need replace this code.
app = createApp(context).
this prop createApp comes from mantra.
import { createApp } from ‘mantra-core’;
i try change this with React.createContext(context).
but i need load modules.
this is my code.
import React from ‘react’;
import initContext from ‘./configs/context’;
// modules
import coreModule from ‘./modules/core’;
import appModule from ‘./modules/app’;
import generalModule from ‘./modules/general’;
import hardwareModule from ‘./modules/hardware’;
import dashboardModule from ‘./modules/dashboard’;
import compressorModule from ‘./modules/compressor’;
import chartModule from ‘./modules/chart’;
import sensorModule from ‘./modules/sensor’;
// init context
const context = initContext();
// create app
this line, i`m trying to change
““const app = React.createContext(context);””
const app = createApp(context);
app.loadModule(coreModule);
app.loadModule(appModule);
app.loadModule(generalModule);
app.loadModule(hardwareModule);
app.loadModule(dashboardModule);
app.loadModule(compressorModule);
app.loadModule(chartModule);
app.loadModule(sensorModule);
app.init();