설치하기

# $ create-react-app hello-axios
# $ cd hello-axios
$ npm install --save axios

Get 사용하기

import axios from 'axios';

axios.get(`http://localhost/company/profile/` + this.state.symbol)
  .then(res => {
    this.setState(state => ({
      name: res.data.companyName,
      price: res.data.price,
      market_cap: res.data.mktCap
    }));
  })

참고자료