mantra-core
Core API for Mantra.
Introduction
This repo contains the core APP api where we create an mantra app and initialize it.
Also, this package contains exported functions from both react-komposer
and react-simple-di
.
That's purely for the ease of use.
Installation
npm i --save mantra-core react
App API
;; // Here's a simple Mantra Moduleconst module = { const InjectedComp = ; // load routes and put `InjectedComp` to the screen. } { // do any module initialization } actions: myNamespace: {} ; const context = client: ; const app = ;app;// app.loadModule(someOtherModule);app;