feat: adding frontend code (react)

This commit is contained in:
Mose Müller
2023-08-02 12:06:19 +02:00
parent fa9086baa8
commit d3ad419c33
10 changed files with 17751 additions and 0 deletions

14
frontend/src/App.tsx Normal file
View File

@ -0,0 +1,14 @@
import React from 'react';
// A simple functional component
const App: React.FC = () => {
return (
<div>
<h1>Hello, world!</h1>
<p>Welcome to my React application. This is some test.</p>
</div>
);
};
export default App;

12
frontend/src/index.tsx Normal file
View File

@ -0,0 +1,12 @@
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
// Render the App component into the #root div
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);