@octanejs/cli 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/commands/init/templates.js +2 -2
- package/src/data/octane-data.json +628 -141
package/package.json
CHANGED
|
@@ -593,12 +593,12 @@ export const indexHtml = (mode) => (mode === 'fullstack' ? SSR_INDEX_HTML : SPA_
|
|
|
593
593
|
/**
|
|
594
594
|
* The client bootstrap, `spa` only. `render(App)` is the body-and-props
|
|
595
595
|
* overload, which keeps the entry plain TypeScript with no JSX pragma to carry.
|
|
596
|
+
* Chaining the disposable mount lets eligible builds omit reusable-root machinery.
|
|
596
597
|
*/
|
|
597
598
|
export const clientEntry = `import { createRoot } from "octane";
|
|
598
599
|
import { App } from "./App.tsrx";
|
|
599
600
|
|
|
600
|
-
|
|
601
|
-
root.render(App);
|
|
601
|
+
createRoot(document.getElementById("root")!).render(App);
|
|
602
602
|
`;
|
|
603
603
|
|
|
604
604
|
/**
|