Fix App.jsx two-page workflow JSX render and update study app layout

This commit is contained in:
nmemmert
2026-05-26 17:14:30 -04:00
commit f47a41ce6f
4459 changed files with 1059845 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
export default function getJSXPragmaInfo(options) {
const [base, suffix] = splitPragma(options.jsxPragma || "React.createElement");
const [fragmentBase, fragmentSuffix] = splitPragma(options.jsxFragmentPragma || "React.Fragment");
return {base, suffix, fragmentBase, fragmentSuffix};
}
function splitPragma(pragma) {
let dotIndex = pragma.indexOf(".");
if (dotIndex === -1) {
dotIndex = pragma.length;
}
return [pragma.slice(0, dotIndex), pragma.slice(dotIndex)];
}