Reputation: 6500
I'm trying to learn React Flux by following this Video
https://www.youtube.com/watch?v=CmdPegEyyVs
This piece of code is highlighted by VS Code here
import Flux from "@4geeksacademy/react-flux-dash";
const export let addContact = (contact) => {
}
What seems to be the issue here?
Upvotes: 0
Views: 322
Reputation: 1
export is a keyword it can't be used as a variable choose different variable
Upvotes: 0
Reputation: 2104
"export const" not "const export let"
import Flux from '@4geeksacademy/react-flux-dash';
export const addContact = (contact) => {};
Upvotes: 1
Reputation: 310
Just remove the const
before export.
Definitely it will work out
Upvotes: 3