December 2019
Intermediate to advanced
598 pages
12h 21m
English
Our second action creator will be for posting a question. Let's carry out the following steps to implement this:
import { QuestionData, getUnansweredQuestions, postQuestion, PostQuestionData} from './QuestionsData';
export const postQuestionActionCreator: ActionCreator< ThunkAction< Promise<void>, QuestionData, PostQuestionData, PostedQuestionAction >> = (question: PostQuestionData) => { return async (dispatch: Dispatch) => { ...Read now
Unlock full access