Skip to content

where is counterReducer from? #4403

Answered by markerikson
snowden-fu asked this question in Help
Discussion options

You must be logged in to vote

It's an ES module "default import/export".

When you do export default whatever, another file can do import AnyNameYouWantHere from "./some/other/file".

In this case, I called it counterReducer, but I could have called it import fred or import aldkfjalsdkflkasjdf. It's just creating a variable name in the importing file.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by snowden-fu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants