diff options
author | Eug-VS <eug-vs@keemail.me> | 2019-12-31 03:20:49 +0300 |
---|---|---|
committer | Eug-VS <eug-vs@keemail.me> | 2019-12-31 15:39:10 +0300 |
commit | 11f4a2cff3068cdb27bf5da0054d8204a3ee5070 (patch) | |
tree | 3d0b2c624310b4233ff7b5891102d403af236bf4 /src/index.js | |
parent | 6feb332973393b48369e12516808ad5294c9a843 (diff) | |
download | chrono-cube-ui-11f4a2cff3068cdb27bf5da0054d8204a3ee5070.tar.gz |
Transfer App.ts -> index.js, add css baseline
Install dependencies:
* @material-ui/core
* styled-components
More info: https://material-ui.com/components/css-baseline/
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js index b597a44..512d416 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,23 @@ import React from 'react'; import ReactDOM from 'react-dom'; -import App from './App'; + +import styled from 'styled-components'; +import CssBaseline from '@material-ui/core/CssBaseline' + +import Header from "./components/Header"; + + +const App = () => ( + <Root> + <CssBaseline/> + <Header/> + <p> Page content here </p> + </Root> +); + +const Root = styled.div` + background: lightgrey; +`; + ReactDOM.render(<App />, document.getElementById('root')); |