Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react redux actions must be plain objects

import thunk from 'redux-thunk'
import { applyMiddleware } from 'redux'

const store = createStore(reducer, initialState, applyMiddleware(thunk))
 
PREVIOUS NEXT
Tagged: #react #redux #actions #plain #objects
ADD COMMENT
Topic
Name
4+9 =