diff options
| author | Ryan Mehri <[email protected]> | 2020-05-09 21:46:06 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-05-09 21:46:06 -0600 |
| commit | 3f2759dbe300058c77f70ab585a96e65c7cd091b (patch) | |
| tree | d6d82a8aa1c9e1bf14ca0f25781eba45e671916d /frontend/src | |
| parent | Merge pull request #4 from jackyzha0/folder-refactor (diff) | |
| parent | add react setup (diff) | |
| download | ctrl-v-3f2759dbe300058c77f70ab585a96e65c7cd091b.tar.xz ctrl-v-3f2759dbe300058c77f70ab585a96e65c7cd091b.zip | |
Merge pull request #5 from jackyzha0/react
add react setup
Diffstat (limited to 'frontend/src')
| -rw-r--r-- | frontend/src/components/App.js | 15 | ||||
| -rw-r--r-- | frontend/src/css/index.css | 13 | ||||
| -rw-r--r-- | frontend/src/index.js | 11 |
3 files changed, 39 insertions, 0 deletions
diff --git a/frontend/src/components/App.js b/frontend/src/components/App.js new file mode 100644 index 0000000..3614fe1 --- /dev/null +++ b/frontend/src/components/App.js @@ -0,0 +1,15 @@ +import React from 'react'; + +function App() { + return ( + <div className="App"> + <header className="App-header"> + <p> + Edit <code>src/App.js</code> and save to reload. + </p> + </header> + </div> + ); +} + +export default App; diff --git a/frontend/src/css/index.css b/frontend/src/css/index.css new file mode 100644 index 0000000..ec2585e --- /dev/null +++ b/frontend/src/css/index.css @@ -0,0 +1,13 @@ +body { + margin: 0; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', + 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', + sans-serif; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +code { + font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', + monospace; +} diff --git a/frontend/src/index.js b/frontend/src/index.js new file mode 100644 index 0000000..437fe03 --- /dev/null +++ b/frontend/src/index.js @@ -0,0 +1,11 @@ +import React from 'react'; +import ReactDOM from 'react-dom'; +import './css/index.css'; +import App from './components/App'; + +ReactDOM.render( + <React.StrictMode> + <App /> + </React.StrictMode>, + document.getElementById('root') +);
\ No newline at end of file |