mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-06-13 16:17:11 +02:00
feat: adding frontend code (react)
This commit is contained in:
14
frontend/src/App.tsx
Normal file
14
frontend/src/App.tsx
Normal 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
12
frontend/src/index.tsx
Normal 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')
|
||||
);
|
Reference in New Issue
Block a user