added sample component, and sample style

This commit is contained in:
Ben Elferink
2020-12-25 19:26:21 +02:00
parent 5606f0203e
commit cc755d1deb
3 changed files with 20 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
import React from 'react'; import React from 'react';
import HelloWorld from './components/HelloWorld';
import './style/style.css'; import './style/style.css';
// import * as api from './api'; // import * as api from './api';
// un-comment this ^ ^ ^ to import api endpoints // un-comment this ^ ^ ^ to import api endpoints
@@ -13,7 +14,11 @@ function App() {
// //
// example ^ ^ ^ using the api endpoint // example ^ ^ ^ using the api endpoint
return <div>Hello World - React.js</div>; return (
<div className='App'>
<HelloWorld />
</div>
);
} }
export default App; export default App;

View File

@@ -0,0 +1,7 @@
import React from 'react';
function HelloWorld() {
return <div>Hello World - React.js</div>;
}
export default HelloWorld;

View File

@@ -8,3 +8,10 @@ body {
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
.App {
width: 100%;
min-height: 100vh;
display: grid;
place-items: center;
}