I copy paste your example component TakeMoney, but I never get anywhere because in the onToken function declaration the compiler gives me an error. I tried updating babel, rebuilding the method myself, and more, but I can't seem figure it out.
I have the feeling this is very simple.
I paste my compiling error below, as seen in the terminal:
`ERROR in ./src/TakeMoney.js
Module build failed: SyntaxError: Unexpected token (6:12)
I copy paste your example component
TakeMoney
, but I never get anywhere because in the onToken function declaration the compiler gives me an error. I tried updating babel, rebuilding the method myself, and more, but I can't seem figure it out.I have the feeling this is very simple. I paste my compiling error below, as seen in the terminal:
`ERROR in ./src/TakeMoney.js Module build failed: SyntaxError: Unexpected token (6:12)
4 | export default class TakeMoney extends React.Component { 5 |
(The arrow is supposed to point at the equal sign)