Files
freeCodeCamp/guide/english/certifications/front-end-libraries/redux/define-an-action-creator/index.md
Randell Dawson 1494a50123 fix(guide): restructure curriculum guide articles (#36501)
* fix: restructure certifications guide articles
* fix: added 3 dashes line before prob expl
* fix: added 3 dashes line before hints
* fix: added 3 dashes line before solutions
2019-07-24 13:29:27 +05:30

496 B

title
title
Define an Action Creator

Define an Action Creator


Hints

Hint 1

A function is defined using the following syntax:

function functionName() {
  console.log("Do something");
}

Where console.log can be changed as per the need.

Hint 2

A value is returned using the return keyword


Solutions

Solution 1 (Click to Show/Hide)
function actionCreator() {
  return action;
}