Skip to content

Commit

Permalink
barebones react setup
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikHorn committed Feb 21, 2020
1 parent 8d3f71d commit 1cb4e2d
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@
},
"resolutions": {},
"dependencies": {}
}
}
11 changes: 11 additions & 0 deletions packages/frontend/src/components/App.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import * as React from 'react';
import { hot } from 'react-hot-loader';

export interface IAppProps { }


export const AppComponent = (props: IAppProps) => (
<div>Hier könnte Ihre Werbung stehen</div>
);

export const App = hot(module)(AppComponent);
20 changes: 13 additions & 7 deletions packages/frontend/src/index.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Elite SE</title>
</head>
<body>
</body>
</html>

<head>
<meta charset="UTF-8" />
<title>Elite-SE | Sexy</title>
</head>

<body>
<!-- React root container dom element -->
<div id="root" />
<noscript>You need to enable javascript to be able to use this WebApp</noscript>
</body>

</html>
5 changes: 5 additions & 0 deletions packages/frontend/src/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { App } from './components/App';

ReactDOM.render(<App />, document.getElementById('root'));

0 comments on commit 1cb4e2d

Please sign in to comment.