Archived
upload boilerplate files
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import { ENV } from "./constants/env";
|
||||
|
||||
const App = () => {
|
||||
return <span>My {ENV} App</span>;
|
||||
};
|
||||
|
||||
export default App;
|
||||
@@ -0,0 +1 @@
|
||||
export const ENV: string = process.env.ENV || "dev";
|
||||
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32">
|
||||
<title>Typescript React App</title>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
<div id="root"></div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,8 @@
|
||||
import ReactDOM from "react-dom";
|
||||
import App from "./App";
|
||||
|
||||
const Index = () => {
|
||||
return <App />;
|
||||
};
|
||||
|
||||
ReactDOM.render(<Index />, document.getElementById("root"));
|
||||
Reference in New Issue
Block a user