React Native, Unexpected token (10:6)

时间:2017-08-30 20:33:47

标签: android react-native

I'm learning React Native, in my example I'm getting the next error:

Unexpected token (10:6) at Hello.js

The code of my class Hello is:

let x = 1 || (0 === 0);

The Line 10 is < View > so I have no idea what's wrong with my code.

Thanks.

1 个答案:

答案 0 :(得分:0)

return uses parenthesis, so return (..);