commit
484d13872d
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"license": "UNLICENSED",
|
||||
"private": true
|
||||
}
|
|
@ -8,7 +8,6 @@
|
|||
manifest.json provides metadata used when your web app is added to the
|
||||
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
|
||||
-->
|
||||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
|
||||
<!--
|
||||
Notice the use of %PUBLIC_URL% in the tags above.
|
||||
It will be replaced with the URL of the `public` folder during the build.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import React, { Component } from 'react';
|
||||
import logo from './logo.svg';
|
||||
import axios from 'axios';
|
||||
import './App.css';
|
||||
|
||||
class App extends Component {
|
||||
|
@ -14,7 +14,10 @@ class App extends Component {
|
|||
}
|
||||
|
||||
fetchOptions() {
|
||||
|
||||
axios.get('https://jsonplaceholder.typicode.com/posts/1')
|
||||
.then(((response) => {
|
||||
console.log(response)
|
||||
}))
|
||||
}
|
||||
|
||||
componentWillMount(){
|
|
@ -2,6 +2,7 @@ import React from 'react';
|
|||
import ReactDOM from 'react-dom';
|
||||
import './index.css';
|
||||
import App from './App';
|
||||
import registerServiceWorker from './registerServiceWorker';
|
||||
|
||||
ReactDOM.render(<App />, document.getElementById('root'));
|
||||
registerServiceWorker();
|
File diff suppressed because it is too large
Load Diff
|
@ -9,7 +9,7 @@
|
|||
"dev": "encore dev",
|
||||
"watch": "encore dev --watch",
|
||||
"build": "encore production",
|
||||
"start": "react-scripts start"
|
||||
"start": "cd app && node ../node_modules/react-scripts/scripts/start.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "^0.18.0",
|
||||
|
|
Loading…
Reference in New Issue