30. Common JavaScript and Library Management

The Problem

Business applications often share utility scripts and third-party libraries across many components.

The React Difficulty

React does not define a runtime manifest for shared classic and modern scripts. Bundlers and package managers normally manage dependencies, with application-specific loading rules.

React Approach

import { formatCurrency } from "./common/formatCurrency.js";
import dayjs from "dayjs";

const text = formatCurrency(1250);

MS Approach

ManySet provides a direct runtime-oriented approach for this recurring business-application task.

// GlobalConfig.json can declare CommonJS and CommonCSS.
// Example: a shared .mjs, classic .js, or external library can be
// made available according to the application's configuration.

Why this way is useful in business applications :

The comparison is intended to show where ManySet supplies a business-application abstraction around a recurring task, while keeping HTML and JavaScript visible and directly usable.

Key Point :

ManySet reduces the amount of framework-specific composition required for this particular task, without requiring the React/Angular mechanism to be represented as inherently wrong or incapable.