21. Screen Layout
The Problem
ERP screens commonly have stable regions such as header, navigation, content, right panel, and footer.
The React Difficulty
React components can express layout, but the application normally builds the region structure itself using JSX and CSS/grid/flex conventions.
React Approach
function Screen() {
return <div className="screen">
<Header />
<aside><Menu /></aside>
<main><Content /></main>
<footer><Footer /></footer>
</div>;
}
MS Approach
ManySet provides a direct runtime-oriented approach for this recurring business-application task.
const layout = ms.layout();
layout.header = header;
layout.left = menu;
layout.main = content;
layout.footer = footer;
await ms.insert(layout, "screen");
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.