I’m just planning my next big project. And i’m a little bit confusing how can i make multi-react-application where i can render each app separately and serve specific content only on concrete route without loading everything else. For example:
import App from './app/App.js’
import Site from './app/site/Site.js’
import Admin from './app/admin/Admin.js’
import Screen from './app/screen/Screen.js’
import Entrance from './app/entrance/Entrance.js’
import Dashboard from ‘./app/dashboard/Dashboard.js’
I would like to make each of this items as a separate React applications (maybe with shared resources and some components). But bundle it as one Meteor build, with the same db and Meteor.server methods.
Is it possible at all for React or Blaze?
The main question was about don’t loading resources that not needed for one page, and load only needed for specific route (app). Is it possible?
For example, for entrance route i don’t need all the fancy css and js code that needed for dashboard. So how can i avoid loading this resource?