NaN problem with react-redux and react-thunk
问题 I'm trying to get data from api about currencies and I get error about NaN. I console.log(this.props) There it is: There is what I already did. In my actionTypes.js export const FETCH_DATA_BEGIN = 'FETCH_DATA_BEGIN'; export const FETCH_DATA_SUCCESS = 'FETCH_DATA_SUCCESS'; export const FETCH_DATA_FAIL = 'FETCH_DATA_FAIL'; and also there is my action.js export const fetchData = () => { return dispatch => { fetch(`https://api.exchangeratesapi.io/latest?base=${this.props.base}`) .then(res => res