Frontend CLI + Templates
This commit is contained in:
9
react/_tmpl/src/App.jsx
Normal file
9
react/_tmpl/src/App.jsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import {useMemo} from "react";
|
||||
import API from "shared/api";
|
||||
|
||||
export default function App() {
|
||||
|
||||
const api = useMemo(() => new API(), []);
|
||||
|
||||
return <></>
|
||||
}
|
||||
9
react/_tmpl/src/index.js
Normal file
9
react/_tmpl/src/index.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import React from "react";
|
||||
import {createRoot} from "react-dom/client";
|
||||
import App from "./App";
|
||||
import {LocaleProvider} from "shared/locale";
|
||||
|
||||
const root = createRoot(document.getElementById('{{MODULE_NAME}}'));
|
||||
root.render(<LocaleProvider>
|
||||
<App />
|
||||
</LocaleProvider>);
|
||||
Reference in New Issue
Block a user