A
A
ArtemKalinin2018-10-03 16:55:26
React
ArtemKalinin, 2018-10-03 16:55:26

React-Redux fetch Thunk?

Please help in solving the problem - I can not get data from thunk. Using React + Redux + Thunk
I want to get data from a local dataJson.json file and pass it to the translatedWord state.
Here is my code:
5bb4cac6502f0468689580.png
Action is described like this:
case "WORD_TRANSLATE_ACTION":
return {
...state,
translatedWord: action.payload
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Alekseev, 2018-10-06
@Zatmil

You can immediately say that after console.log('then two') ,is , not;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question