R
R
Rapen2017-05-18 21:08:01
React
Rapen, 2017-05-18 21:08:01

Why is there an error in connect?

Syntactically, there is nothing

Syntax error: C:/Users/asd/Desktop/react-app/src/App.js: Unexpected token, expected } (35:43)

  33 |      
  34 | 
> 35 | export default connect(state => ({ updState: state})
     |                                            ^
  36 | )(App);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
KnightForce, 2017-05-18
@Rapen

Erm, no?
If on the shelves:

export default connect(
    state => ({ updState: state}// Где скобка закрытия??? 
)

Instead of:
So:
In short, close the bracket.
Try.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question